# Rails

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

[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:** 981

---

## [Problem with functional test](https://www.ruby-forum.com/t/problem-with-functional-test/163867)

<div class="topic-metadata">

**Author:** [@pietia](https://www.ruby-forum.com/u/pietia)\
**Replies:** 4\
**Last updated:** [March 25, 2009, 7:41pm UTC](https://www.ruby-forum.com/t/problem-with-functional-test/163867 "2009-03-25T19:41:50Z")

</div>

Hi I have upgraded to 2.3.2 and changed updated everything inside myproject : This is my functional TEST : require ‘test\_helper’ class Admin::ProjectsControllerTest \< ActiveSupport::TestCase def test\_get\_index get…

---

## [Few Questions about form\_for\_remote](https://www.ruby-forum.com/t/few-questions-about-form-for-remote/163871)

<div class="topic-metadata">

**Author:** [@tashfeen.ekram](https://www.ruby-forum.com/u/tashfeen.ekram)\
**Replies:** 3\
**Last updated:** [March 25, 2009, 7:33pm UTC](https://www.ruby-forum.com/t/few-questions-about-form-for-remote/163871 "2009-03-25T19:33:01Z")

</div>

Still learning some stuff so forgive the newbie type questions. if i use the :update param on form\_for\_remote can I mix javascript and ruby? i want to use the selector offered by prototype but pass in the parameters …

---

## [404 error in route](https://www.ruby-forum.com/t/404-error-in-route/163743)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [March 25, 2009, 5:17pm UTC](https://www.ruby-forum.com/t/404-error-in-route/163743 "2009-03-25T17:17:48Z")

</div>

Hi, I get a very strang error when I deploy my rails 2.2.2 application to the server. The application works when I start it with script/server. but when I deploy the app to rails host server (I think it runs with lig…

---

## [Rack and Tomcat can't find gem](https://www.ruby-forum.com/t/rack-and-tomcat-cant-find-gem/163864)

<div class="topic-metadata">

**Author:** [@paul-au](https://www.ruby-forum.com/u/paul-au)\
**Replies:** 0\
**Last updated:** [March 25, 2009, 4:54pm UTC](https://www.ruby-forum.com/t/rack-and-tomcat-cant-find-gem/163864 "2009-03-25T16:54:31Z")

</div>

Hello, I’ve been struggling for awhile now trying to get my sample rails app to run on Tomcat. I’m using JRuby in conjunction with Warbler to create my war file. I’m using jruby 1.1.6, warbler 0.9.12, rails 2.1.0, To…

---

## [Validation for a non active record input field](https://www.ruby-forum.com/t/validation-for-a-non-active-record-input-field/163388)

<div class="topic-metadata">

**Author:** [@railslist](https://www.ruby-forum.com/u/railslist)\
**Replies:** 5\
**Last updated:** [March 25, 2009, 4:39pm UTC](https://www.ruby-forum.com/t/validation-for-a-non-active-record-input-field/163388 "2009-03-25T16:39:40Z")

</div>

I am developing a classifieds type application. It has a Classified Model, Classified controller and a “show” view. When viewing an ad, it has an option to reply to the advertiser through action mailer. This reply is…

---

## [List of databases supported by Rails](https://www.ruby-forum.com/t/list-of-databases-supported-by-rails/163829)

<div class="topic-metadata">

**Author:** [@ther](https://www.ruby-forum.com/u/ther)\
**Replies:** 3\
**Last updated:** [March 25, 2009, 4:26pm UTC](https://www.ruby-forum.com/t/list-of-databases-supported-by-rails/163829 "2009-03-25T16:26:09Z")

</div>

Where can I obtain list of databases supported by Ruby on Rails? Thanks TheR

---

## [Passenger vs Mongrel](https://www.ruby-forum.com/t/passenger-vs-mongrel/163830)

<div class="topic-metadata">

**Author:** [@arghx1](https://www.ruby-forum.com/u/arghx1)\
**Replies:** 6\
**Last updated:** [March 25, 2009, 4:22pm UTC](https://www.ruby-forum.com/t/passenger-vs-mongrel/163830 "2009-03-25T16:22:02Z")

</div>

I have a simple question guys! Is passenger for deploying RoR apps vs mongrel, which one is better? I saw how easy it’s to deploy passenger, but I wonder is it still relevant to current rails (2.3.2) and ruby 1.8.7 …

---

## [YAHosting inquiry (yet another hosting inquiry)](https://www.ruby-forum.com/t/yahosting-inquiry-yet-another-hosting-inquiry/163861)

<div class="topic-metadata">

**Author:** [@spacechurro](https://www.ruby-forum.com/u/spacechurro)\
**Replies:** 3\
**Last updated:** [March 25, 2009, 4:15pm UTC](https://www.ruby-forum.com/t/yahosting-inquiry-yet-another-hosting-inquiry/163861 "2009-03-25T16:15:34Z")

</div>

i have read some of the posts here, but it seems like they may be a little dated, so i am posting this to the forum… i have a client who needs to have one smaller application hosted. initially, we set them up with a g…

---

## [Can't run production console: custom\_require.rb:27: \[BUG\] terminated node (0x8117eb8)](https://www.ruby-forum.com/t/cant-run-production-console-custom-require-rb-bug-terminated-node-0x8117eb8/162927)

<div class="topic-metadata">

**Author:** [@dgm](https://www.ruby-forum.com/u/dgm)\
**Replies:** 3\
**Last updated:** [March 25, 2009, 4:06pm UTC](https://www.ruby-forum.com/t/cant-run-production-console-custom-require-rb-bug-terminated-node-0x8117eb8/162927 "2009-03-25T16:06:45Z")

</div>

Suddenly I can’t run the production console anymore for my app :(. Here’s the error I get: 08:12pm fggedsaa:~/rails/production/app\>./script/console production Loading production environment (Rails 2.1.1) /opt/csw/li…

---

## [Sanitize within helpers](https://www.ruby-forum.com/t/sanitize-within-helpers/163745)

<div class="topic-metadata">

**Author:** [@Michael\_Ragalie](https://www.ruby-forum.com/u/Michael_Ragalie)\
**Replies:** 1\
**Last updated:** [March 25, 2009, 3:56pm UTC](https://www.ruby-forum.com/t/sanitize-within-helpers/163745 "2009-03-25T15:56:44Z")

</div>

Hello, I used to be able to call sanitize (or h) in helpers. When I updated to 2.3.2 it seems like I am no longer able to access helper methods within other helpers. Any tips on how I might be able to get this working …

---

## [Just how the hell do you set Cache-Control max-age?](https://www.ruby-forum.com/t/just-how-the-hell-do-you-set-cache-control-max-age/163636)

<div class="topic-metadata">

**Author:** [@petrjanda](https://www.ruby-forum.com/u/petrjanda)\
**Replies:** 2\
**Last updated:** [March 25, 2009, 3:35pm UTC](https://www.ruby-forum.com/t/just-how-the-hell-do-you-set-cache-control-max-age/163636 "2009-03-25T15:35:05Z")

</div>

Hi all, Ive been googling for couple of hours and I just cant figure it out. I want to set the max-age value to 300 for the WHOLE application, regardless of development or production mode. Is there anyone that knows? …

---

## [Strange problems with belongs\_to()](https://www.ruby-forum.com/t/strange-problems-with-belongs-to/163854)

<div class="topic-metadata">

**Author:** [@msmsms](https://www.ruby-forum.com/u/msmsms)\
**Replies:** 0\
**Last updated:** [March 25, 2009, 3:08pm UTC](https://www.ruby-forum.com/t/strange-problems-with-belongs-to/163854 "2009-03-25T15:08:05Z")

</div>

Hey. I am a bit confused, seems to be simple thing, but anyhow it does not work for me: class Foo has\_many(:bars) end class Bar belongs\_to(:myfoo, :class\_name =\> ‘Foo’) end b = Bar.new(). b.myfoo = Foo.find\_by\_…

---

## [Strange problems with belongs\_to()](https://www.ruby-forum.com/t/strange-problems-with-belongs-to/163849)

<div class="topic-metadata">

**Author:** [@msmsms](https://www.ruby-forum.com/u/msmsms)\
**Replies:** 0\
**Last updated:** [March 25, 2009, 2:57pm UTC](https://www.ruby-forum.com/t/strange-problems-with-belongs-to/163849 "2009-03-25T14:57:32Z")

</div>

Hey. I am a bit confused, seems to be simple thing, but anyhow it does not work for me: class Foo has\_many(:bars) end class Bar belongs\_to(:myfoo, :class\_name =\> ‘Foo’) end b = Bar.new().myfoo = Foo.find\_by\_name…

---

## [Hash with key and value from ActiveRecord?](https://www.ruby-forum.com/t/hash-with-key-and-value-from-activerecord/163843)

<div class="topic-metadata">

**Author:** [@cojones](https://www.ruby-forum.com/u/cojones)\
**Replies:** 6\
**Last updated:** [March 25, 2009, 2:19pm UTC](https://www.ruby-forum.com/t/hash-with-key-and-value-from-activerecord/163843 "2009-03-25T14:19:13Z")

</div>

Heya, I think I have thinking barrier. I just want a simple hash out of an ActiveRecord. @attributes = Attribute.find\_all\_by\_character\_id(@character).hash { |u| \[u.name, u.value\] } and I would like to access it like …

---

## [Optimise this association?](https://www.ruby-forum.com/t/optimise-this-association/163848)

<div class="topic-metadata">

**Author:** [@cmaxvv](https://www.ruby-forum.com/u/cmaxvv)\
**Replies:** 0\
**Last updated:** [March 25, 2009, 2:12pm UTC](https://www.ruby-forum.com/t/optimise-this-association/163848 "2009-03-25T14:12:29Z")

</div>

hey all In my schema, Lesson is many to many with Asset (through join table ‘elements’), which are also many to many with Resource (through join table ‘items’). This is all done with totally standard “has\_many :thro…

---

## [SalesForce Integration](https://www.ruby-forum.com/t/salesforce-integration/163847)

<div class="topic-metadata">

**Author:** [@Piyush\_with\_Rails](https://www.ruby-forum.com/u/Piyush_with_Rails)\
**Replies:** 0\
**Last updated:** [March 25, 2009, 2:02pm UTC](https://www.ruby-forum.com/t/salesforce-integration/163847 "2009-03-25T14:02:25Z")

</div>

Hi All, I need to integrate my application with salesforce (www.salesforce.com). does anyone have any idea for what is the best approach to follow for this integration ?? I have implemented my Web Service APIs using…

---

## [How to number pdf pages of pdf document frm the second page](https://www.ruby-forum.com/t/how-to-number-pdf-pages-of-pdf-document-frm-the-second-page/163846)

<div class="topic-metadata">

**Author:** [@radha](https://www.ruby-forum.com/u/radha)\
**Replies:** 0\
**Last updated:** [March 25, 2009, 1:53pm UTC](https://www.ruby-forum.com/t/how-to-number-pdf-pages-of-pdf-document-frm-the-second-page/163846 "2009-03-25T13:53:53Z")

</div>

Hello friends, How to start page numbering of the pdf pages from the secong page. I have added :all\_following\_pages option in add\_object method of pdf, still it starts numbering from the first page. Does anyone hv an…

---

## [Apache + mongrel keepalive?](https://www.ruby-forum.com/t/apache-mongrel-keepalive/163842)

<div class="topic-metadata">

**Author:** [@btsk](https://www.ruby-forum.com/u/btsk)\
**Replies:** 0\
**Last updated:** [March 25, 2009, 1:14pm UTC](https://www.ruby-forum.com/t/apache-mongrel-keepalive/163842 "2009-03-25T13:14:45Z")

</div>

My site run at apache + mongrel\*3,when I visit my site,I want keep connection alive with one backend mongrel server.but apache always send me to one of them, this time I connect this,another time I connect that,I don’…

---

## [Security question : making urls safe](https://www.ruby-forum.com/t/security-question-making-urls-safe/163795)

<div class="topic-metadata">

**Author:** [@itsastickup](https://www.ruby-forum.com/u/itsastickup)\
**Replies:** 5\
**Last updated:** [March 25, 2009, 12:58pm UTC](https://www.ruby-forum.com/t/security-question-making-urls-safe/163795 "2009-03-25T12:58:50Z")

</div>

Hi folks, Is there an issue with urls and security? How should I be encoding them? More than just h()? thanks

---

## [Locale currency only works for displaying numbers?](https://www.ruby-forum.com/t/locale-currency-only-works-for-displaying-numbers/163837)

<div class="topic-metadata">

**Author:** [@raimon](https://www.ruby-forum.com/u/raimon)\
**Replies:** 0\
**Last updated:** [March 25, 2009, 11:24am UTC](https://www.ruby-forum.com/t/locale-currency-only-works-for-displaying-numbers/163837 "2009-03-25T11:24:34Z")

</div>

Hello, Using a locale I can format the same number for displaying it: database: 1900.58 en layout: 1,900.58 cat layout: 1.900,58 this is ok … but how I can do the reverse of it, when the user submits via form a nu…

---

## [How to include a check box while using wice grid](https://www.ruby-forum.com/t/how-to-include-a-check-box-while-using-wice-grid/163834)

<div class="topic-metadata">

**Author:** [@indu](https://www.ruby-forum.com/u/indu)\
**Replies:** 0\
**Last updated:** [March 25, 2009, 11:13am UTC](https://www.ruby-forum.com/t/how-to-include-a-check-box-while-using-wice-grid/163834 "2009-03-25T11:13:22Z")

</div>

Hello every one, I am trying to implement the wice grid in my project.In that I want to display check boxes.my code is like the following \<%= grid(@users\_grid,:table\_html\_attrs =\> {:class =\> ‘grid\_style’, :id =\> ‘acc…

---

## [Render :update, error](https://www.ruby-forum.com/t/render-update-error/163804)

<div class="topic-metadata">

**Author:** [@abusiek](https://www.ruby-forum.com/u/abusiek)\
**Replies:** 1\
**Last updated:** [March 25, 2009, 10:14am UTC](https://www.ruby-forum.com/t/render-update-error/163804 "2009-03-25T10:14:14Z")

</div>

Hi! In my view i have remote\_form\_for and action in controller: def save\_offer\_basics @offer = Offer.new params\[:offer\_basics\] @offer.user\_id = current\_user.id @offer.enable\_validation\_group :offer\_basic render :up…

---

## [Catch validation errors from Model.update(params\[:object\].keys, params\[:object\].values)](https://www.ruby-forum.com/t/catch-validation-errors-from-model-update-params-object-keys-params-object-values/163814)

<div class="topic-metadata">

**Author:** [@bongoman](https://www.ruby-forum.com/u/bongoman)\
**Replies:** 2\
**Last updated:** [March 25, 2009, 10:11am UTC](https://www.ruby-forum.com/t/catch-validation-errors-from-model-update-params-object-keys-params-object-values/163814 "2009-03-25T10:11:19Z")

</div>

Hi there I’m trying to update three records at a time with params coming back from an HTML form. The form is set up fine and the params hash is coming back in a form ready to use: Model.update(params\[:object\].keys, p…

---

## [Restful delete/destroy](https://www.ruby-forum.com/t/restful-delete-destroy/163813)

<div class="topic-metadata">

**Author:** [@elle](https://www.ruby-forum.com/u/elle)\
**Replies:** 3\
**Last updated:** [March 25, 2009, 9:06am UTC](https://www.ruby-forum.com/t/restful-delete-destroy/163813 "2009-03-25T09:06:19Z")

</div>

Hello, I am sure this is a simple problem but for some reason I can’t get it to work. I am trying to delete a record. My routes.rb has: map.resources :ads …the AdsController has: def destroy @ad = Ad.find(params\[:…

---

## [How does view know about instance vars set in controller?](https://www.ruby-forum.com/t/how-does-view-know-about-instance-vars-set-in-controller/163587)

<div class="topic-metadata">

**Author:** [@fipa](https://www.ruby-forum.com/u/fipa)\
**Replies:** 5\
**Last updated:** [March 25, 2009, 9:03am UTC](https://www.ruby-forum.com/t/how-does-view-know-about-instance-vars-set-in-controller/163587 "2009-03-25T09:03:28Z")

</div>

Hi, I know that the AWDWR says to believe in magic and to not spend Xmas with people asking this question, but really how does it work under the hood? I was looking at the source code of crummy, and it seems that in…

---

## [RMagick LoadError](https://www.ruby-forum.com/t/rmagick-loaderror/163821)

<div class="topic-metadata">

**Author:** [@k560](https://www.ruby-forum.com/u/k560)\
**Replies:** 0\
**Last updated:** [March 25, 2009, 7:27am UTC](https://www.ruby-forum.com/t/rmagick-loaderror/163821 "2009-03-25T07:27:59Z")

</div>

I installed RMagick 2.9.1 and tried to test RMagick code below. irb -rubygems -r RMagick But I got an error like below. /usr/local/lib/ruby/gems/1.8/gems/rmagick-2.9.1/lib/RMagick2.so: libMagickCore.so.2: cannot open…

---

## [How to modify the encoding style of WSDL](https://www.ruby-forum.com/t/how-to-modify-the-encoding-style-of-wsdl/163819)

<div class="topic-metadata">

**Author:** [@Piyush\_with\_Rails](https://www.ruby-forum.com/u/Piyush_with_Rails)\
**Replies:** 0\
**Last updated:** [March 25, 2009, 6:54am UTC](https://www.ruby-forum.com/t/how-to-modify-the-encoding-style-of-wsdl/163819 "2009-03-25T06:54:38Z")

</div>

Hello All, I am using AWS in rails to implement web service apis. Looking at the WSDL generated by AWS seems it is of encoding style “RPC Encoded”. But to consume my service i need the encoding style “literal wrapped…

---

## [Uncommenting a line in environment.rb file](https://www.ruby-forum.com/t/uncommenting-a-line-in-environment-rb-file/163708)

<div class="topic-metadata">

**Author:** [@gouthami](https://www.ruby-forum.com/u/gouthami)\
**Replies:** 2\
**Last updated:** [March 25, 2009, 6:03am UTC](https://www.ruby-forum.com/t/uncommenting-a-line-in-environment-rb-file/163708 "2009-03-25T06:03:40Z")

</div>

Hi, I am a newbee to rubyonrails. I was given task of migration of database from mysql to oracle for a ror application. My probelm is when I go into my environment.rb file and uncomment the; config.action\_controller.s…

---

## [IBM\_DB version 1.0.5 supports ruby-1.9.1](https://www.ruby-forum.com/t/ibm-db-version-1-0-5-supports-ruby-1-9-1/163816)

<div class="topic-metadata">

**Author:** [@praveen](https://www.ruby-forum.com/u/praveen)\
**Replies:** 0\
**Last updated:** [March 25, 2009, 5:45am UTC](https://www.ruby-forum.com/t/ibm-db-version-1-0-5-supports-ruby-1-9-1/163816 "2009-03-25T05:45:02Z")

</div>

Hi All, New version (1.0.5) of ibm\_db Rails Adapter/driver for IBM dataservers is now available. This release of gem provides support for ruby-1.9.1. With this support for 1.9.1 the ibm\_db gem works fine as a ASCII d…

---

## [Couldn't find without an ID](https://www.ruby-forum.com/t/couldnt-find-without-an-id/163810)

<div class="topic-metadata">

**Author:** [@ple\_mazako](https://www.ruby-forum.com/u/ple_mazako)\
**Replies:** 2\
**Last updated:** [March 25, 2009, 4:44am UTC](https://www.ruby-forum.com/t/couldnt-find-without-an-id/163810 "2009-03-25T04:44:49Z")

</div>

hello , i have problem when i want to show page after user submit data into database. this is code in controller class ComponentsController \< ApplicationController def index end def databases @title = “Datab…

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

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