# Rails

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

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

---

## [Has\_many - undefined method!](https://www.ruby-forum.com/t/has-many-undefined-method/195411)

<div class="topic-metadata">

**Author:** [@arowan](https://www.ruby-forum.com/u/arowan)\
**Replies:** 5\
**Last updated:** [September 23, 2010, 4:37pm UTC](https://www.ruby-forum.com/t/has-many-undefined-method/195411 "2010-09-23T16:37:01Z")

</div>

Hi all, still new at this lol, trying to create a one to many relationship i have: group.rb \[ belongs\_to :user \] user.rb \[ has\_many :groups \] but if i do “user.groups” it just throws up: “NoMethodError: undefin…

---

## [Anyone working for the Gov using RoR?](https://www.ruby-forum.com/t/anyone-working-for-the-gov-using-ror/197151)

<div class="topic-metadata">

**Author:** [@mydarkpassenger](https://www.ruby-forum.com/u/mydarkpassenger)\
**Replies:** 0\
**Last updated:** [September 23, 2010, 4:36pm UTC](https://www.ruby-forum.com/t/anyone-working-for-the-gov-using-ror/197151 "2010-09-23T16:36:22Z")

</div>

Greetings everyone, Is there anyone working for any branch of the government (military branches would be particularly helpful) who is currently using Ruby or RoR? Currently, there is no CON (Certificate of Networthin…

---

## [For tests](https://www.ruby-forum.com/t/for-tests/195442)

<div class="topic-metadata">

**Author:** [@msan](https://www.ruby-forum.com/u/msan)\
**Replies:** 4\
**Last updated:** [September 23, 2010, 4:32pm UTC](https://www.ruby-forum.com/t/for-tests/195442 "2010-09-23T16:32:57Z")

</div>

Hello. I’ve seen http://teachmetocode.com/screencasts/rails-3-building-a-blog-part-1-test-setup-generators/. He use cucumber with rspec and capybara for tests. What do you think? I’m reading about cucumber but I don…

---

## [Loop of Properties](https://www.ruby-forum.com/t/loop-of-properties/195458)

<div class="topic-metadata">

**Author:** [@Saulo\_Brust](https://www.ruby-forum.com/u/Saulo_Brust)\
**Replies:** 1\
**Last updated:** [September 23, 2010, 4:31pm UTC](https://www.ruby-forum.com/t/loop-of-properties/195458 "2010-09-23T16:31:05Z")

</div>

I’m starting in RoR, sorry if this question seems too basic. See the code below. The second parameter of the method Rails3AMF: IntermediateModel.new must pass ALL properties “field”. How do I implement a loop that doe…

---

## [How to remote function to get info from url in a javascript function](https://www.ruby-forum.com/t/how-to-remote-function-to-get-info-from-url-in-a-javascript-function/195404)

<div class="topic-metadata">

**Author:** [@nephish](https://www.ruby-forum.com/u/nephish)\
**Replies:** 3\
**Last updated:** [September 23, 2010, 4:25pm UTC](https://www.ruby-forum.com/t/how-to-remote-function-to-get-info-from-url-in-a-javascript-function/195404 "2010-09-23T16:25:02Z")

</div>

hey all I am working with a javascript function called Elabel, part of the Google maps api the Elabel has a function called setContents(html) i need to be able to call this function and get new html for it. ( the ht…

---

## [Can not get css file when unicorn running in production mode](https://www.ruby-forum.com/t/can-not-get-css-file-when-unicorn-running-in-production-mode/195468)

<div class="topic-metadata">

**Author:** [@Lewis](https://www.ruby-forum.com/u/Lewis)\
**Replies:** 0\
**Last updated:** [September 23, 2010, 3:15pm UTC](https://www.ruby-forum.com/t/can-not-get-css-file-when-unicorn-running-in-production-mode/195468 "2010-09-23T15:15:20Z")

</div>

Dear all I’m newbie to unicorn server. recently I got a problem when I was trying to run unicorn in production model. like command unicorn -E production. then I lost all my css styles in the browser. But everything…

---

## [How to i force apche to handle download requestrunning apach](https://www.ruby-forum.com/t/how-to-i-force-apche-to-handle-download-requestrunning-apach/197236)

<div class="topic-metadata">

**Author:** [@amit-singh](https://www.ruby-forum.com/u/amit-singh)\
**Replies:** 0\
**Last updated:** [September 23, 2010, 2:55pm UTC](https://www.ruby-forum.com/t/how-to-i-force-apche-to-handle-download-requestrunning-apach/197236 "2010-09-23T14:55:46Z")

</div>

hii all, Am running apche as frontend to mongrel ,i added these line in Apache’s httpd.conf file LoadModule rewrite\_module modules/mod\_rewrite.so LoadModule proxy\_module modules/mod\_proxy.so LoadModule proxy\_balancer…

---

## [Haml generated javascript](https://www.ruby-forum.com/t/haml-generated-javascript/195463)

<div class="topic-metadata">

**Author:** [@sycofly](https://www.ruby-forum.com/u/sycofly)\
**Replies:** 0\
**Last updated:** [September 23, 2010, 2:44pm UTC](https://www.ruby-forum.com/t/haml-generated-javascript/195463 "2010-09-23T14:44:18Z")

</div>

Hi guys, I’m a little stumped on how to get the output from a HAML generated list “= render :text =\> @providers.map(&:name)” called by the application.js $(document).ready( function(){ $( ‘#user\_provider\_name’ ).aut…

---

## [Multiple database sessions](https://www.ruby-forum.com/t/multiple-database-sessions/195461)

<div class="topic-metadata">

**Author:** [@nitin\_k\_m](https://www.ruby-forum.com/u/nitin_k_m)\
**Replies:** 0\
**Last updated:** [September 23, 2010, 2:43pm UTC](https://www.ruby-forum.com/t/multiple-database-sessions/195461 "2010-09-23T14:43:07Z")

</div>

Hi guys, What I found is with rails application we can have only one session to database. And for all logged in users it queries to database using that session. I need to have different databse session for different …

---

## [\[rails\] extjs on rails](https://www.ruby-forum.com/t/rails-extjs-on-rails/195460)

<div class="topic-metadata">

**Author:** [@Sandhika\_Yogaswara](https://www.ruby-forum.com/u/Sandhika_Yogaswara)\
**Replies:** 0\
**Last updated:** [September 23, 2010, 2:43pm UTC](https://www.ruby-forum.com/t/rails-extjs-on-rails/195460 "2010-09-23T14:43:07Z")

</div>

is anybody have sample using extjs on rails?

---

## [Adding custom message on model validation in rails 3](https://www.ruby-forum.com/t/adding-custom-message-on-model-validation-in-rails-3/195249)

<div class="topic-metadata">

**Author:** [@miked](https://www.ruby-forum.com/u/miked)\
**Replies:** 8\
**Last updated:** [September 23, 2010, 2:39pm UTC](https://www.ruby-forum.com/t/adding-custom-message-on-model-validation-in-rails-3/195249 "2010-09-23T14:39:01Z")

</div>

Hi, I am developing an application in rails 3.0 I have post Model class Post \< ActiveRecord::Base validates :name , :presence =\> true end I have added the presence of validation on post name. It shows me error th…

---

## [Validates in rails 3 is fuzzy?](https://www.ruby-forum.com/t/validates-in-rails-3-is-fuzzy/195452)

<div class="topic-metadata">

**Author:** [@jamal](https://www.ruby-forum.com/u/jamal)\
**Replies:** 2\
**Last updated:** [September 23, 2010, 2:05pm UTC](https://www.ruby-forum.com/t/validates-in-rails-3-is-fuzzy/195452 "2010-09-23T14:05:03Z")

</div>

Hi, I’m trying to create “forgot\_password” page, but the error is not showing out on the page. user.errors\[:password\] = “must be longere then 5 character” or user.errors\[:password\] \<\< “must be longere then 5 charact…

---

## [Multiple collection\_select](https://www.ruby-forum.com/t/multiple-collection-select/195454)

<div class="topic-metadata">

**Author:** [@PalaniKannan\_K](https://www.ruby-forum.com/u/PalaniKannan_K)\
**Replies:** 1\
**Last updated:** [September 23, 2010, 1:07pm UTC](https://www.ruby-forum.com/t/multiple-collection-select/195454 "2010-09-23T13:07:41Z")

</div>

Dear all, collection\_select (country) collection\_select (state) collection\_select (city) I need to give the query system hierarchically. (Eg. select India -\> then it should populate states in India-\> select state t…

---

## [Undefined method \`protect\_against\_forgery?' for #\<ActionView](https://www.ruby-forum.com/t/undefined-method-protect-against-forgery-for-actionview/195443)

<div class="topic-metadata">

**Author:** [@hostep](https://www.ruby-forum.com/u/hostep)\
**Replies:** 1\
**Last updated:** [September 23, 2010, 12:00pm UTC](https://www.ruby-forum.com/t/undefined-method-protect-against-forgery-for-actionview/195443 "2010-09-23T12:00:56Z")

</div>

Hi guys This is a pretty tricky one. I get a “undefined method \`protect\_against\_forgery?’ for #ActionView::Base:0x569a3d4” error when trying to generate a partial from ‘outside’ the web site. I do this as I have a ra…

---

## [Can i upgrade my redmine 0.8.3 to 1.0.1?](https://www.ruby-forum.com/t/can-i-upgrade-my-redmine-0-8-3-to-1-0-1/195446)

<div class="topic-metadata">

**Author:** [@siri](https://www.ruby-forum.com/u/siri)\
**Replies:** 0\
**Last updated:** [September 23, 2010, 11:43am UTC](https://www.ruby-forum.com/t/can-i-upgrade-my-redmine-0-8-3-to-1-0-1/195446 "2010-09-23T11:43:57Z")

</div>

Hi, I want to upgrade my redmine 0.8.3 to 1.0.1,Can i upgrade my redmine 0.8.3 to 1.0.1 directly? or first upgrade it to 0.9.x and then 1.0.1?

---

## [How to go with this in ActiveScaffold?](https://www.ruby-forum.com/t/how-to-go-with-this-in-activescaffold/195441)

<div class="topic-metadata">

**Author:** [@swengineer](https://www.ruby-forum.com/u/swengineer)\
**Replies:** 0\
**Last updated:** [September 23, 2010, 10:08am UTC](https://www.ruby-forum.com/t/how-to-go-with-this-in-activescaffold/195441 "2010-09-23T10:08:00Z")

</div>

I want to build a very simple application using ActiveScaffold, and just want to ask how can I begin with this. The application simply does the following: Create item Provide item details for each item Using ordinar…

---

## [Undefined method \`path' for Gem:Module (NoMethodError)](https://www.ruby-forum.com/t/undefined-method-path-for-gem-module-nomethoderror/194427)

<div class="topic-metadata">

**Author:** [@laguna53](https://www.ruby-forum.com/u/laguna53)\
**Replies:** 13\
**Last updated:** [September 23, 2010, 8:42am UTC](https://www.ruby-forum.com/t/undefined-method-path-for-gem-module-nomethoderror/194427 "2010-09-23T08:42:26Z")

</div>

Hi, when running - ‘ruby setup.rb’ I get the following error message: C:\\rubygems-1.3.7\>ruby setup.rb C:/rubygems-1.3.7/lib/rubygems/source\_index.rb:68:in installed\_spec\_directories’: undefined method \`path’ for Gem:…

---

## [Rake aborted! undefined method \`autoload!'](https://www.ruby-forum.com/t/rake-aborted-undefined-method-autoload/195434)

<div class="topic-metadata">

**Author:** [@maynard](https://www.ruby-forum.com/u/maynard)\
**Replies:** 0\
**Last updated:** [September 23, 2010, 7:21am UTC](https://www.ruby-forum.com/t/rake-aborted-undefined-method-autoload/195434 "2010-09-23T07:21:04Z")

</div>

Hi! I made a app in rails 3.0.0, but when i try to upload to my hosting i take to change the version of rails to rails 3.0.0.beta4 Im make the bundle install and every step cool, but when i try to do the rake db:migr…

---

## [Multiple database support](https://www.ruby-forum.com/t/multiple-database-support/195432)

<div class="topic-metadata">

**Author:** [@nitin\_k\_m](https://www.ruby-forum.com/u/nitin_k_m)\
**Replies:** 0\
**Last updated:** [September 23, 2010, 7:15am UTC](https://www.ruby-forum.com/t/multiple-database-support/195432 "2010-09-23T07:15:20Z")

</div>

Hi All, Could you please help me getting a way to support multiple databases with rails application. I found that with ruby application we can connect only one database at a time by either specifying database informa…

---

## [Rails3 question about why using the older style :controller option breaks under the following scenar](https://www.ruby-forum.com/t/rails3-question-about-why-using-the-older-style-controller-option-breaks-under-the-following-scenar/195431)

<div class="topic-metadata">

**Author:** [@Rick\_R](https://www.ruby-forum.com/u/Rick_R)\
**Replies:** 0\
**Last updated:** [September 23, 2010, 7:13am UTC](https://www.ruby-forum.com/t/rails3-question-about-why-using-the-older-style-controller-option-breaks-under-the-following-scenar/195431 "2010-09-23T07:13:29Z")

</div>

I’ll probably do a bad job at describing this but I’m going to give it a shot (pretty new to Rails)… In my main application layout file I have the following link in my menu bar which works just fine: \<%= link\_to “Met…

---

## [Job: Senior Quality Assurance Engineer in San Francisco, CA](https://www.ruby-forum.com/t/job-senior-quality-assurance-engineer-in-san-francisco-ca/195429)

<div class="topic-metadata">

**Author:** [@megan](https://www.ruby-forum.com/u/megan)\
**Replies:** 0\
**Last updated:** [September 23, 2010, 7:03am UTC](https://www.ruby-forum.com/t/job-senior-quality-assurance-engineer-in-san-francisco-ca/195429 "2010-09-23T07:03:32Z")

</div>

VerticalResponse, Inc is a leading provider of self-service email and direct mail solutions. We’ve been recognized as one of the top 100 best places to work in the bay area and top 100 fastest growing businesses in Sa…

---

## [HowTo; Rails 3, having Tabs that load conten t via jQuery â€¦ No Page Refesh](https://www.ruby-forum.com/t/howto-rails-3-having-tabs-that-load-conten-t-via-jquery-a-no-page-refesh/195425)

<div class="topic-metadata">

**Author:** [@nobosh](https://www.ruby-forum.com/u/nobosh)\
**Replies:** 0\
**Last updated:** [September 23, 2010, 5:25am UTC](https://www.ruby-forum.com/t/howto-rails-3-having-tabs-that-load-conten-t-via-jquery-a-no-page-refesh/195425 "2010-09-23T05:25:14Z")

</div>

I’m interested in learning the correct/smart approach for implementing a web page with tabs and a content panel… So when the tab is selected the tab’s content is fetched and inserted with jQuery… no page refresh… Kin…

---

## [Mysql port info](https://www.ruby-forum.com/t/mysql-port-info/195358)

<div class="topic-metadata">

**Author:** [@awijeet](https://www.ruby-forum.com/u/awijeet)\
**Replies:** 5\
**Last updated:** [September 23, 2010, 3:19am UTC](https://www.ruby-forum.com/t/mysql-port-info/195358 "2010-09-23T03:19:35Z")

</div>

I want to create an API for my web application so i need access on mysql. for that I need following info… database host-name and that I am unable to get… Thanks

---

## [Need speakers for Mobile apps meeting](https://www.ruby-forum.com/t/need-speakers-for-mobile-apps-meeting/195419)

<div class="topic-metadata">

**Author:** [@A\_Sarkar](https://www.ruby-forum.com/u/A_Sarkar)\
**Replies:** 0\
**Last updated:** [September 23, 2010, 2:50am UTC](https://www.ruby-forum.com/t/need-speakers-for-mobile-apps-meeting/195419 "2010-09-23T02:50:10Z")

</div>

Dear friends, We are planning to organize our next meeting very soon. The topic will be mobile apps. Please contact me if you would like to be a speaker. http://www.meetup.com/ruby-100/grow/ Regards Amit

---

## [Mysql gem install error on Mac OS X - 'ulong' undeclared error](https://www.ruby-forum.com/t/mysql-gem-install-error-on-mac-os-x-ulong-undeclared-error/134565)

<div class="topic-metadata">

**Author:** [@greg](https://www.ruby-forum.com/u/greg)\
**Replies:** 2\
**Last updated:** [September 23, 2010, 12:18am UTC](https://www.ruby-forum.com/t/mysql-gem-install-error-on-mac-os-x-ulong-undeclared-error/134565 "2010-09-23T00:18:22Z")

</div>

Hi, I can’t seem to install the mysql gem for Ruby (see errors below). I get an ‘ulong’ undeclared error. Can anyone assist? ============ERROR========================= Macintosh:mysql-2.7 greg$ sudo gem install mysq…

---

## [Maintain connections to two databases](https://www.ruby-forum.com/t/maintain-connections-to-two-databases/195281)

<div class="topic-metadata">

**Author:** [@michael\_teter](https://www.ruby-forum.com/u/michael_teter)\
**Replies:** 9\
**Last updated:** [September 22, 2010, 11:13pm UTC](https://www.ruby-forum.com/t/maintain-connections-to-two-databases/195281 "2010-09-22T23:13:03Z")

</div>

Howdy. My app is required to perform some user-driven CRUD operations on two databases simultaneously. This is not the normal situation, but it applies to a low-activity admin controller. My current solution involve…

---

## [Active\_scaffold](https://www.ruby-forum.com/t/active-scaffold/195409)

<div class="topic-metadata">

**Author:** [@swengineer](https://www.ruby-forum.com/u/swengineer)\
**Replies:** 19\
**Last updated:** [September 22, 2010, 11:02pm UTC](https://www.ruby-forum.com/t/active-scaffold/195409 "2010-09-22T23:02:01Z")

</div>

Following this tutorial for setting up ActiveScaffold with Rails3: and, when I run the following command: rails g active\_scaffold\_setup \[prototype| jquery\] I get the following: C:\\Users\\Abder-Rahman\\Desktop\\howto\>ra…

---

## [Browser caching of Rails assets -- for real](https://www.ruby-forum.com/t/browser-caching-of-rails-assets-for-real/195407)

<div class="topic-metadata">

**Author:** [@jrochkind](https://www.ruby-forum.com/u/jrochkind)\
**Replies:** 0\
**Last updated:** [September 22, 2010, 9:05pm UTC](https://www.ruby-forum.com/t/browser-caching-of-rails-assets-for-real/195407 "2010-09-22T21:05:05Z")

</div>

While Rails adds a ?timestamp query string to the end of asset URLs, under passenger+apache deployment (and I suspect most other deployment), these actually have no effect whatsoever on browser caching. In some cases…

---

## [Attr\_accessor](https://www.ruby-forum.com/t/attr-accessor/195388)

<div class="topic-metadata">

**Author:** [@swengineer](https://www.ruby-forum.com/u/swengineer)\
**Replies:** 7\
**Last updated:** [September 22, 2010, 6:56pm UTC](https://www.ruby-forum.com/t/attr-accessor/195388 "2010-09-22T18:56:01Z")

</div>

I’m looking at an example here: And, came along this line in MyModel: attr\_accessor :start\_amount, :end\_amount What is “attr\_accessor”? Thanks.

---

## [Partials issue](https://www.ruby-forum.com/t/partials-issue/195366)

<div class="topic-metadata">

**Author:** [@swengineer](https://www.ruby-forum.com/u/swengineer)\
**Replies:** 7\
**Last updated:** [September 22, 2010, 6:40pm UTC](https://www.ruby-forum.com/t/partials-issue/195366 "2010-09-22T18:40:22Z")

</div>

I’m following an example in the “Head First Rails” book regarding partials. The book seems to be using a version prior Rails 3.0.0, which I’m using. I’m having a small issue here. There is a “new.html.erb” for “Seats…

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

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