# Rails

**URL:** https://www.ruby-forum.com/c/ruby-on-rails/6.md?page=1139

[Latest](https://www.ruby-forum.com/latest.md) · [Categories](https://www.ruby-forum.com/categories.md) · [Tags](https://www.ruby-forum.com/tags.md)

**Page:** 1140

---

## [J2ee and rails proejct with one jboss webserver](https://www.ruby-forum.com/t/j2ee-and-rails-proejct-with-one-jboss-webserver/152111)

<div class="topic-metadata">

**Author:** [@thaniyarasu](https://www.ruby-forum.com/u/thaniyarasu)\
**Replies:** 3\
**Last updated:** [November 3, 2008, 5:22am UTC](https://www.ruby-forum.com/t/j2ee-and-rails-proejct-with-one-jboss-webserver/152111 "2008-11-03T05:22:38Z")

</div>

i am new to rails(version-2.1.1) Already i have a j2ee project running on jboss server. i want to add some extra functionality(which is i have created in a new Rails project) into that j2ee project. i want to deploy …

---

## [Stuck on a validates\_presence\_of unless issue](https://www.ruby-forum.com/t/stuck-on-a-validates-presence-of-unless-issue/152294)

<div class="topic-metadata">

**Author:** [@hoenth](https://www.ruby-forum.com/u/hoenth)\
**Replies:** 2\
**Last updated:** [November 3, 2008, 4:50am UTC](https://www.ruby-forum.com/t/stuck-on-a-validates-presence-of-unless-issue/152294 "2008-11-03T04:50:56Z")

</div>

i have a person object. Persons don’t need to have addresses, but if they have any address field value, they must have them all. So I have something like this: validates\_presence\_of :street\_address, :city, :state, :po…

---

## [ROR Ubuntu 8.10: Action Controller: Exception caught](https://www.ruby-forum.com/t/ror-ubuntu-8-10-action-controller-exception-caught/152350)

<div class="topic-metadata">

**Author:** [@scudco](https://www.ruby-forum.com/u/scudco)\
**Replies:** 1\
**Last updated:** [November 3, 2008, 4:26am UTC](https://www.ruby-forum.com/t/ror-ubuntu-8-10-action-controller-exception-caught/152350 "2008-11-03T04:26:08Z")

</div>

System: Virtual Box running Ubuntu 8.10 as guest Fellowed ( http://wiki.rubyonrails.org/rails/pages/RailsOnUbuntu ) to instal RoR Book: Agile Web D. with Rails: Second Edition Issue: (pleas help) I’m creating a si…

---

## [List problem?](https://www.ruby-forum.com/t/list-problem/152343)

<div class="topic-metadata">

**Author:** [@bill\_walton](https://www.ruby-forum.com/u/bill_walton)\
**Replies:** 1\
**Last updated:** [November 2, 2008, 8:49pm UTC](https://www.ruby-forum.com/t/list-problem/152343 "2008-11-02T20:49:45Z")

</div>

I haven’t received any posts from the list since yesteday morning. I’m posting this from the google interface. Could someone with admin rights check into this? Thanks, Bill

---

## [Error message](https://www.ruby-forum.com/t/error-message/152342)

<div class="topic-metadata">

**Author:** [@Delirium\_tremens](https://www.ruby-forum.com/u/Delirium_tremens)\
**Replies:** 2\
**Last updated:** [November 2, 2008, 8:16pm UTC](https://www.ruby-forum.com/t/error-message/152342 "2008-11-02T20:16:55Z")

</div>

When I run a test, I get the error message: “FormatError: Bad data for Story fixture named two (nil)”. What should I do about it?

---

## [Two Actions for One Click](https://www.ruby-forum.com/t/two-actions-for-one-click/152326)

<div class="topic-metadata">

**Author:** [@tailormade](https://www.ruby-forum.com/u/tailormade)\
**Replies:** 1\
**Last updated:** [November 2, 2008, 8:10pm UTC](https://www.ruby-forum.com/t/two-actions-for-one-click/152326 "2008-11-02T20:10:27Z")

</div>

I have a list where the user clicks on an item and the details about that item are shown. Simple. No problem. However, I also need to make a javascript call to highlight information in a java applet corresponding to t…

---

## [AJAX page.call not working](https://www.ruby-forum.com/t/ajax-page-call-not-working/152335)

<div class="topic-metadata">

**Author:** [@rajatgarg](https://www.ruby-forum.com/u/rajatgarg)\
**Replies:** 1\
**Last updated:** [November 2, 2008, 7:56pm UTC](https://www.ruby-forum.com/t/ajax-page-call-not-working/152335 "2008-11-02T19:56:55Z")

</div>

Hi Everyone, I need your help. I have created a form that makes an Ajax call to submit the data. It is working fine on 1 page of the site (Contact | Trip Outlook Travel Buddy) and same code is not working properly a…

---

## [Hosting Email](https://www.ruby-forum.com/t/hosting-email/152341)

<div class="topic-metadata">

**Author:** [@amin1426](https://www.ruby-forum.com/u/amin1426)\
**Replies:** 0\
**Last updated:** [November 2, 2008, 7:36pm UTC](https://www.ruby-forum.com/t/hosting-email/152341 "2008-11-02T19:36:04Z")

</div>

How do folks handle email for their web startup? I have my rails app handling all of its email chores beautifully using sendmail and ActionMailer. New Account Confirmation, Forgotten Password Email, Monthly Newslette…

---

## [Rspec issues](https://www.ruby-forum.com/t/rspec-issues/152202)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 6\
**Last updated:** [November 2, 2008, 3:48pm UTC](https://www.ruby-forum.com/t/rspec-issues/152202 "2008-11-02T15:48:32Z")

</div>

Hi, i’ve started using rspec for this project (latest versions: rspec 1.1.9 and rspec-rails 1.1.9), and i stumbled upon the following problems: render\_template: response.should render\_template(‘new’) i get the fo…

---

## [Problem with acts\_as\_attachment](https://www.ruby-forum.com/t/problem-with-acts-as-attachment/152331)

<div class="topic-metadata">

**Author:** [@xxmithila](https://www.ruby-forum.com/u/xxmithila)\
**Replies:** 0\
**Last updated:** [November 2, 2008, 3:28pm UTC](https://www.ruby-forum.com/t/problem-with-acts-as-attachment/152331 "2008-11-02T15:28:02Z")

</div>

HI… I used acts\_as\_attachment plugin ot upload a picture, but it return this ERROR when uploading. pls help stucked… error:- undefined method \`after\_attachment\_saved\_callback\_chain’

---

## [Send\_file example code -- permissions?](https://www.ruby-forum.com/t/send-file-example-code-permissions/151981)

<div class="topic-metadata">

**Author:** [@jeffpritchard](https://www.ruby-forum.com/u/jeffpritchard)\
**Replies:** 5\
**Last updated:** [November 2, 2008, 7:41am UTC](https://www.ruby-forum.com/t/send-file-example-code-permissions/151981 "2008-11-02T07:41:41Z")

</div>

Hi, I’m having trouble getting send\_file to work. I’m building a relatively small csv file, and trying to let the user download it. My action to do the download looks like this: def send\_the\_file @temp\_download\_fil…

---

## [Rails newbie - \`gem\_original\_require': no such file to load -- /home/aa/rb1/config/environment (Loa](https://www.ruby-forum.com/t/rails-newbie-gem-original-require-no-such-file-to-load-home-aa-rb1-config-environment-loa/152319)

<div class="topic-metadata">

**Author:** [@Cristian](https://www.ruby-forum.com/u/Cristian)\
**Replies:** 1\
**Last updated:** [November 2, 2008, 4:51am UTC](https://www.ruby-forum.com/t/rails-newbie-gem-original-require-no-such-file-to-load-home-aa-rb1-config-environment-loa/152319 "2008-11-02T04:51:05Z")

</div>

Hello, I’m trying to get started with Rails but I keep getting the same error, could someone please enlighten me? $ mongrel\_rails mongrel::start -p 8000 -l mongrel.log -P mongrel.pid - n 5 -e development -c /home/aa/r…

---

## [Why is datetime used over timestamp in ROR?](https://www.ruby-forum.com/t/why-is-datetime-used-over-timestamp-in-ror/152266)

<div class="topic-metadata">

**Author:** [@ericgoodwin](https://www.ruby-forum.com/u/ericgoodwin)\
**Replies:** 5\
**Last updated:** [November 2, 2008, 4:25am UTC](https://www.ruby-forum.com/t/why-is-datetime-used-over-timestamp-in-ror/152266 "2008-11-02T04:25:25Z")

</div>

Hey guys, I have a similar thread at Datetime vs timestamp - Rails - Ruby-Forum, but I decided to open a new thread since I felt the original one was not clear from my end and didn’t quite get to the bottom of the iss…

---

## [Acts\_as\_list issue](https://www.ruby-forum.com/t/acts-as-list-issue/152096)

<div class="topic-metadata">

**Author:** [@tankow](https://www.ruby-forum.com/u/tankow)\
**Replies:** 1\
**Last updated:** [November 2, 2008, 3:33am UTC](https://www.ruby-forum.com/t/acts-as-list-issue/152096 "2008-11-02T03:33:21Z")

</div>

The list i have defined in my acts\_as\_list will not let me drag the li elements around. I am using FF, but IE6 also fails. Here is what i have defined in my code: model: listing.rb class Listing \< ActiveRecord::Bas…

---

## [Before\_save only works at console](https://www.ruby-forum.com/t/before-save-only-works-at-console/152315)

<div class="topic-metadata">

**Author:** [@Davi\_V](https://www.ruby-forum.com/u/Davi_V)\
**Replies:** 2\
**Last updated:** [November 2, 2008, 12:18am UTC](https://www.ruby-forum.com/t/before-save-only-works-at-console/152315 "2008-11-02T00:18:41Z")

</div>

Hi all. I’ve the following comments’ model: class Comment \< ActiveRecord::Base validates\_presence\_of :commentary, :anon belongs\_to :commentary, :polymorphic =\> true attr\_accessor :anon #anon is an virtual attribute. …

---

## [Selling Pass to Voices that Matter conf on Nov 17-20](https://www.ruby-forum.com/t/selling-pass-to-voices-that-matter-conf-on-nov-17-20/152312)

<div class="topic-metadata">

**Author:** [@rubydude](https://www.ruby-forum.com/u/rubydude)\
**Replies:** 0\
**Last updated:** [November 1, 2008, 9:41pm UTC](https://www.ruby-forum.com/t/selling-pass-to-voices-that-matter-conf-on-nov-17-20/152312 "2008-11-01T21:41:08Z")

</div>

Hey guys- I have a pass to Voices That Matter conference in Boston from Nov 17th-20th http://www.voicesthatmatter.com/ruby2008/ But I can’t go :frowning: So best offer this week for the pass will get it. Conference o…

---

## [Nested resources](https://www.ruby-forum.com/t/nested-resources/152301)

<div class="topic-metadata">

**Author:** [@pink-ink](https://www.ruby-forum.com/u/pink-ink)\
**Replies:** 3\
**Last updated:** [November 1, 2008, 8:20pm UTC](https://www.ruby-forum.com/t/nested-resources/152301 "2008-11-01T20:20:06Z")

</div>

Hello, I have a problem with nested resources. Ich made following entries in the routes.rb: map.resources :projects do |project| project.resources :iterations do |iteration| iteration.resources :tasks end end whe…

---

## [Check whether the boolean value true or false](https://www.ruby-forum.com/t/check-whether-the-boolean-value-true-or-false/152281)

<div class="topic-metadata">

**Author:** [@Ishara\_G](https://www.ruby-forum.com/u/Ishara_G)\
**Replies:** 4\
**Last updated:** [November 1, 2008, 6:56pm UTC](https://www.ruby-forum.com/t/check-whether-the-boolean-value-true-or-false/152281 "2008-11-01T18:56:31Z")

</div>

i have a table called “confirm\_clients”,there are 3columns,they are t.column :user\_id, :string t.column :msg\_id, :string t.column :confirm, :boolean i want to check whether the boolean value of confirm is true when …

---

## [2.2 rc1 - local object name on partial (:as)](https://www.ruby-forum.com/t/2-2-rc1-local-object-name-on-partial-as/152302)

<div class="topic-metadata">

**Author:** [@Wagner\_N](https://www.ruby-forum.com/u/Wagner_N)\
**Replies:** 0\
**Last updated:** [November 1, 2008, 5:19pm UTC](https://www.ruby-forum.com/t/2-2-rc1-local-object-name-on-partial-as/152302 "2008-11-01T17:19:50Z")

</div>

Hi guys, The same functionality implemented on #509 (:as option to local var on partial) is not available on JavaScriptGenerator method insert\_html/ replace\_html. render :partial =\> ‘exercises/\_sortable\_exercise’, :a…

---

## [Overloading #initialize in a model](https://www.ruby-forum.com/t/overloading-initialize-in-a-model/152300)

<div class="topic-metadata">

**Author:** [@nick](https://www.ruby-forum.com/u/nick)\
**Replies:** 0\
**Last updated:** [November 1, 2008, 5:13pm UTC](https://www.ruby-forum.com/t/overloading-initialize-in-a-model/152300 "2008-11-01T17:13:59Z")

</div>

I’m using WhinyProtectedAttributes: http://henrik.nyh.se/2007/10/whiny-protected-attributes Say I have this model: class Person \< ActiveRecord::Base attribute\_accessible :name end If I then create a Person with an …

---

## [Application URL](https://www.ruby-forum.com/t/application-url/152250)

<div class="topic-metadata">

**Author:** [@Davi\_V](https://www.ruby-forum.com/u/Davi_V)\
**Replies:** 1\
**Last updated:** [November 1, 2008, 4:50pm UTC](https://www.ruby-forum.com/t/application-url/152250 "2008-11-01T16:50:33Z")

</div>

Hi all. I’m trying to get gravtastic working at my comments model, so I’m doing this: class Comment \< ActiveRecord::Base validates\_presence\_of :commentary belongs\_to :commentary, :polymorphic =\> true attr\_accessor …

---

## [How to expire HTTP basic authenticated session?](https://www.ruby-forum.com/t/how-to-expire-http-basic-authenticated-session/152298)

<div class="topic-metadata">

**Author:** [@difei](https://www.ruby-forum.com/u/difei)\
**Replies:** 0\
**Last updated:** [November 1, 2008, 3:57pm UTC](https://www.ruby-forum.com/t/how-to-expire-http-basic-authenticated-session/152298 "2008-11-01T15:57:00Z")

</div>

Greetings all, I am using authenticate\_or\_request\_with\_http\_basic, but how can I expire/forget the successfully authenticated session for a specific client? Thanks in advance. Cheers, Difei

---

## [How to write test cases for rake tasks](https://www.ruby-forum.com/t/how-to-write-test-cases-for-rake-tasks/152210)

<div class="topic-metadata">

**Author:** [@vamsi](https://www.ruby-forum.com/u/vamsi)\
**Replies:** 1\
**Last updated:** [November 1, 2008, 3:26pm UTC](https://www.ruby-forum.com/t/how-to-write-test-cases-for-rake-tasks/152210 "2008-11-01T15:26:49Z")

</div>

hi, i don’t 've idea about how to write test cases for a rake task(rake file) like i’ve a rake file named daily\_summary.rake and i had written some code like extracting from the database based on some criteria. and t…

---

## [Good Articles/Blogs Explaing Rest with Rails Please](https://www.ruby-forum.com/t/good-articles-blogs-explaing-rest-with-rails-please/139707)

<div class="topic-metadata">

**Author:** [@rahil](https://www.ruby-forum.com/u/rahil)\
**Replies:** 5\
**Last updated:** [November 1, 2008, 12:38pm UTC](https://www.ruby-forum.com/t/good-articles-blogs-explaing-rest-with-rails-please/139707 "2008-11-01T12:38:44Z")

</div>

Hi, It seems Rails 2.0.2 has focussed more on Rest Approach. I need to study more about the Exact meaning of REST and its advantages with Rails. Can someone point me out important and helpful links, where i can focus …

---

## [WoW ..! my Idea](https://www.ruby-forum.com/t/wow-my-idea/152284)

<div class="topic-metadata">

**Author:** [@mithila\_karunarathn](https://www.ruby-forum.com/u/mithila_karunarathn)\
**Replies:** 2\
**Last updated:** [November 1, 2008, 11:10am UTC](https://www.ruby-forum.com/t/wow-my-idea/152284 "2008-11-01T11:10:50Z")

</div>

Ya ishara… this is so helpful to me also… I wish all the members to continue this Group thankx all for ur collaborations

---

## [Seek a job, rails developer](https://www.ruby-forum.com/t/seek-a-job-rails-developer/152288)

<div class="topic-metadata">

**Author:** [@snitko](https://www.ruby-forum.com/u/snitko)\
**Replies:** 0\
**Last updated:** [November 1, 2008, 10:44am UTC](https://www.ruby-forum.com/t/seek-a-job-rails-developer/152288 "2008-11-01T10:44:29Z")

</div>

Doing Ruby and Rails - half a year actively. Know: rspec, git, svn, ubuntu-server (nginx+mongrel\_cluster, monitd, logrotator and some other small stuff about tweaking server), vim, html, css (cross browser), jQuery(n…

---

## [Upload a image code?](https://www.ruby-forum.com/t/upload-a-image-code/152272)

<div class="topic-metadata">

**Author:** [@xxmithila](https://www.ruby-forum.com/u/xxmithila)\
**Replies:** 1\
**Last updated:** [November 1, 2008, 9:24am UTC](https://www.ruby-forum.com/t/upload-a-image-code/152272 "2008-11-01T09:24:56Z")

</div>

pls tellme way to upload a file to data base or relevant example code without using any plugin like act\_as\_attachment xxmithila

---

## [Hi All](https://www.ruby-forum.com/t/hi-all/152286)

<div class="topic-metadata">

**Author:** [@hema\_mca](https://www.ruby-forum.com/u/hema_mca)\
**Replies:** 0\
**Last updated:** [November 1, 2008, 8:08am UTC](https://www.ruby-forum.com/t/hi-all/152286 "2008-11-01T08:08:19Z")

</div>

Can Anyone Help me How to integrate The Ruby Application with the .NET? Procedure to Do that integration

---

## [Get data from call back url](https://www.ruby-forum.com/t/get-data-from-call-back-url/152268)

<div class="topic-metadata">

**Author:** [@xxmithila](https://www.ruby-forum.com/u/xxmithila)\
**Replies:** 2\
**Last updated:** [November 1, 2008, 7:42am UTC](https://www.ruby-forum.com/t/get-data-from-call-back-url/152268 "2008-11-01T07:42:35Z")

</div>

Hi… I want to get parameters from call back url of my application ex :- http://localhost:3000/mail/aa/?hl=ene&zx=gfi1bdfgju6s&shva=1#inbox/11d555fsgw36fd424 as an example these params that attached how can I read whe…

---

## [FlowPlayerLP not playing video](https://www.ruby-forum.com/t/flowplayerlp-not-playing-video/196833)

<div class="topic-metadata">

**Author:** [@mrbless](https://www.ruby-forum.com/u/mrbless)\
**Replies:** 0\
**Last updated:** [November 1, 2008, 6:27am UTC](https://www.ruby-forum.com/t/flowplayerlp-not-playing-video/196833 "2008-11-01T06:27:47Z")

</div>

I know this is not the right place to raise this question. But I am left with no option because I have done googling but could not found the solution that resolve my problem. When i use flowplayerlight or flowplayerda…

[Previous page](https://www.ruby-forum.com/c/ruby-on-rails/6.md?page=1138)

[Next page](https://www.ruby-forum.com/c/ruby-on-rails/6.md?page=1140)
