# Rails

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

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

---

## [Multiple classes on form text\_field](https://www.ruby-forum.com/t/multiple-classes-on-form-text-field/190144)

<div class="topic-metadata">

**Author:** [@ralphshnelvar](https://www.ruby-forum.com/u/ralphshnelvar)\
**Replies:** 1\
**Last updated:** [June 17, 2010, 6:50am UTC](https://www.ruby-forum.com/t/multiple-classes-on-form-text-field/190144 "2010-06-17T06:50:28Z")

</div>

Consider : \<% form\_for(@z) do |f| %\> \<%= f.error\_messages %\> \<%= f.label :x %\> \<%= f.text\_field :x, :class =\> 's' %\> \<%= f.submit 'Update' %\> \<% end %\> The above form works fine. What I w…

---

## [Calling to\_yaml on an array of ActiveRecord objects is producing TypeError: wrong argument type nil](https://www.ruby-forum.com/t/calling-to-yaml-on-an-array-of-activerecord-objects-is-producing-typeerror-wrong-argument-type-nil/135540)

<div class="topic-metadata">

**Author:** [@scott](https://www.ruby-forum.com/u/scott)\
**Replies:** 1\
**Last updated:** [June 16, 2010, 10:33pm UTC](https://www.ruby-forum.com/t/calling-to-yaml-on-an-array-of-activerecord-objects-is-producing-typeerror-wrong-argument-type-nil/135540 "2010-06-16T22:33:55Z")

</div>

I have a query I am running from the console that is eager loading the address on the people model: people = People.find(:all, :include =\> \[:address\], :limit =\> 50) Trying to output that to yaml via: people.to\_yaml …

---

## [Firebug jQuery undefined message in rails app](https://www.ruby-forum.com/t/firebug-jquery-undefined-message-in-rails-app/190135)

<div class="topic-metadata">

**Author:** [@jmaenpaa](https://www.ruby-forum.com/u/jmaenpaa)\
**Replies:** 4\
**Last updated:** [June 16, 2010, 8:48pm UTC](https://www.ruby-forum.com/t/firebug-jquery-undefined-message-in-rails-app/190135 "2010-06-16T20:48:54Z")

</div>

In rails app, I add the following line of code in application.js and I get jQuery is not defined in firebug console. In application.html.erb, I have the following: and I installed jquery in public/javascripts Any i…

---

## [Ruby/lib/ruby/site\_ruby/1.8/rubygems.rb:270:in \`activate': u](https://www.ruby-forum.com/t/ruby-lib-ruby-site-ruby-1-8-rubygems-rbin-activate-u/190139)

<div class="topic-metadata">

**Author:** [@mamadoutoure](https://www.ruby-forum.com/u/mamadoutoure)\
**Replies:** 1\
**Last updated:** [June 16, 2010, 8:20pm UTC](https://www.ruby-forum.com/t/ruby-lib-ruby-site-ruby-1-8-rubygems-rbin-activate-u/190139 "2010-06-16T20:20:47Z")

</div>

Hi folks, I’m getting the following error while trying to start the Webrick serve on a old project that I just checked out from our svn. Could you tell me what’s wrong ? ruby/lib/ruby/site\_ruby/1.8/rubygems.rb:270:in…

---

## [\[Share\] How To Upgrade Rails 2 Become Rails 3](https://www.ruby-forum.com/t/share-how-to-upgrade-rails-2-become-rails-3/190136)

<div class="topic-metadata">

**Author:** [@malioboro](https://www.ruby-forum.com/u/malioboro)\
**Replies:** 0\
**Last updated:** [June 16, 2010, 7:44pm UTC](https://www.ruby-forum.com/t/share-how-to-upgrade-rails-2-become-rails-3/190136 "2010-06-16T19:44:17Z")

</div>

Hi: I just want share for every body here how to upgrade your application from rails 2 become rails 3, like i did before. I hope it will be useful for you guys, any question or advice please post here : http://www.re…

---

## [Rails 3 link\_to :remote](https://www.ruby-forum.com/t/rails-3-link-to-remote/190098)

<div class="topic-metadata">

**Author:** [@hazmatt](https://www.ruby-forum.com/u/hazmatt)\
**Replies:** 3\
**Last updated:** [June 16, 2010, 5:36pm UTC](https://www.ruby-forum.com/t/rails-3-link-to-remote/190098 "2010-06-16T17:36:48Z")

</div>

I recently moved to Rails 3 and am still getting used to some of its new ways of working. I have the following code: \<%= link\_to “#{order.name}”, :url =\> {:controller =\> ‘orders’, :action =\> ‘show’, :id =\> order.id …

---

## [How to call a function after 10 minutes or second?](https://www.ruby-forum.com/t/how-to-call-a-function-after-10-minutes-or-second/190127)

<div class="topic-metadata">

**Author:** [@vuonghung12a2](https://www.ruby-forum.com/u/vuonghung12a2)\
**Replies:** 2\
**Last updated:** [June 16, 2010, 5:27pm UTC](https://www.ruby-forum.com/t/how-to-call-a-function-after-10-minutes-or-second/190127 "2010-06-16T17:27:24Z")

</div>

Hi all, I have a problem. I want to call some function after every 10 minutes. But I don’t it.

---

## [How to get data from DOM Source other website?](https://www.ruby-forum.com/t/how-to-get-data-from-dom-source-other-website/189998)

<div class="topic-metadata">

**Author:** [@vuonghung12a2](https://www.ruby-forum.com/u/vuonghung12a2)\
**Replies:** 2\
**Last updated:** [June 16, 2010, 12:39pm UTC](https://www.ruby-forum.com/t/how-to-get-data-from-dom-source-other-website/189998 "2010-06-16T12:39:49Z")

</div>

Hi, everybody. I am newbie RoR. I want to get all data from DOM Source of website. Can you guide me the way to use REXML? I have ready installed lib-xml library but I only use XML::Parser. I don’t understant it. Tha…

---

## [Before\_filter exception being ignored](https://www.ruby-forum.com/t/before-filter-exception-being-ignored/190115)

<div class="topic-metadata">

**Author:** [@mercurius](https://www.ruby-forum.com/u/mercurius)\
**Replies:** 3\
**Last updated:** [June 16, 2010, 11:34am UTC](https://www.ruby-forum.com/t/before-filter-exception-being-ignored/190115 "2010-06-16T11:34:58Z")

</div>

I am, as stated in the subject, having an issue with a before\_filter exception being ignored by the application. My Customer Controller: http://pastie.org/1005487 My Application Controller: http://pastie.org/1005490 …

---

## [Stuck on undefined method \`downcase' for nil:NilClass](https://www.ruby-forum.com/t/stuck-on-undefined-method-downcase-for-nil-nilclass/190124)

<div class="topic-metadata">

**Author:** [@anonuser](https://www.ruby-forum.com/u/anonuser)\
**Replies:** 0\
**Last updated:** [June 16, 2010, 11:02am UTC](https://www.ruby-forum.com/t/stuck-on-undefined-method-downcase-for-nil-nilclass/190124 "2010-06-16T11:02:55Z")

</div>

Anyone have encounter this problem ?“undefined method \`downcase’ for nil:NilClass” run on port :3000 successful Thanks in advance \[root@ public\]# ruby dispatch.fcgi Status: 500 Internal Server Error Content-Type: t…

---

## [Collection\_select question](https://www.ruby-forum.com/t/collection-select-question/190087)

<div class="topic-metadata">

**Author:** [@bw2010](https://www.ruby-forum.com/u/bw2010)\
**Replies:** 2\
**Last updated:** [June 16, 2010, 10:38am UTC](https://www.ruby-forum.com/t/collection-select-question/190087 "2010-06-16T10:38:09Z")

</div>

Hello! New to ruby on rails, so I hope this isn’t a stupid question (great way to start a post ;)). Basically I’m trying to avoid making a bunch of different columns in my db table by having my collection\_select conc…

---

## [VirtualRails : The FREE Ruby on Rails virtual development pl](https://www.ruby-forum.com/t/virtualrails-the-free-ruby-on-rails-virtual-development-pl/190118)

<div class="topic-metadata">

**Author:** [@jayishappy](https://www.ruby-forum.com/u/jayishappy)\
**Replies:** 0\
**Last updated:** [June 15, 2010, 11:34pm UTC](https://www.ruby-forum.com/t/virtualrails-the-free-ruby-on-rails-virtual-development-pl/190118 "2010-06-15T23:34:00Z")

</div>

where all the stuff and documentation at virtualrails.org What ? VirtualRails is a totally free linux (Mint based) VirtualBox image, fully configured, with : \[list\] \[\]Ruby 1.8.7, RubyGem, Rails 2.3.5 and dependenci…

---

## [ActiveRecordConnection from jobs script](https://www.ruby-forum.com/t/activerecordconnection-from-jobs-script/190117)

<div class="topic-metadata">

**Author:** [@gregm](https://www.ruby-forum.com/u/gregm)\
**Replies:** 2\
**Last updated:** [June 15, 2010, 11:20pm UTC](https://www.ruby-forum.com/t/activerecordconnection-from-jobs-script/190117 "2010-06-15T23:20:43Z")

</div>

Hi, I make a cron jobs and I would like to use ActiveRecord. but I have this error: /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active\_record/connection\_ada…

---

## [Preloading data before running tests?](https://www.ruby-forum.com/t/preloading-data-before-running-tests/190048)

<div class="topic-metadata">

**Author:** [@fearless\_fool](https://www.ruby-forum.com/u/fearless_fool)\
**Replies:** 1\
**Last updated:** [June 15, 2010, 9:49pm UTC](https://www.ruby-forum.com/t/preloading-data-before-running-tests/190048 "2010-06-15T21:49:00Z")

</div>

Okay - I’m stumped: is there a way to run unit tests without blowing away data preloaded into the test database? Details: our system uses a TimeDimension table – think of it as a datetime that’s been highly decorated …

---

## [Image Magic](https://www.ruby-forum.com/t/image-magic/190083)

<div class="topic-metadata">

**Author:** [@ratnamraju](https://www.ruby-forum.com/u/ratnamraju)\
**Replies:** 3\
**Last updated:** [June 15, 2010, 3:35pm UTC](https://www.ruby-forum.com/t/image-magic/190083 "2010-06-15T15:35:57Z")

</div>

Hai Developers i have facing major problem with imagemagic. please give me solution LoadError in ClientsController#index libMagickCore.so.3: cannot open shared object file: No such file or directory - /usr/lib/ruby/g…

---

## ["You are being redirected" when switching controllers](https://www.ruby-forum.com/t/you-are-being-redirected-when-switching-controllers/107155)

<div class="topic-metadata">

**Author:** [@iain](https://www.ruby-forum.com/u/iain)\
**Replies:** 8\
**Last updated:** [June 15, 2010, 2:40pm UTC](https://www.ruby-forum.com/t/you-are-being-redirected-when-switching-controllers/107155 "2010-06-15T14:40:40Z")

</div>

Hey folks I’ve got a couple of Actions that call methods in different controllers. So for example I rewrite the URI from /home to /login/login However, when I do this Firefox displays a “You are being redirected” …

---

## [Config.gem hassles (again)](https://www.ruby-forum.com/t/config-gem-hassles-again/190108)

<div class="topic-metadata">

**Author:** [@cmaxvv](https://www.ruby-forum.com/u/cmaxvv)\
**Replies:** 0\
**Last updated:** [June 15, 2010, 1:15pm UTC](https://www.ruby-forum.com/t/config-gem-hassles-again/190108 "2010-06-15T13:15:54Z")

</div>

Just when i think i’ve got my head around including gems with gem.config in my environment.rb file i hit another hurdle. The latest one involves redlcoth, which one of my plugins needs. my installed redcloth gem is i…

---

## [A few steps for a database with polymorphic association?](https://www.ruby-forum.com/t/a-few-steps-for-a-database-with-polymorphic-association/190105)

<div class="topic-metadata">

**Author:** [@winterheat](https://www.ruby-forum.com/u/winterheat)\
**Replies:** 0\
**Last updated:** [June 15, 2010, 11:22am UTC](https://www.ruby-forum.com/t/a-few-steps-for-a-database-with-polymorphic-association/190105 "2010-06-15T11:22:13Z")

</div>

I thought it could be created in a few steps but it can’t yet: rails poly cd poly ruby script/generate scaffold animal name:string obj\_type:string obj\_id:integer rake:migrate ruby script/generate scaffold human name…

---

## [ArgumentError in StoreController#add\_to\_cart: wrong number of arguments (1 for 0)](https://www.ruby-forum.com/t/argumenterror-in-storecontroller-add-to-cart-wrong-number-of-arguments-1-for-0/117265)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 4\
**Last updated:** [June 15, 2010, 11:07am UTC](https://www.ruby-forum.com/t/argumenterror-in-storecontroller-add-to-cart-wrong-number-of-arguments-1-for-0/117265 "2010-06-15T11:07:00Z")

</div>

I am really new to Ruby and Rails but as you probably see I am trying to get the shopping card working from the book. I am getting this error but I really don’t know what to do. I have looked up several of topics that…

---

## [How to add configuration](https://www.ruby-forum.com/t/how-to-add-configuration/188057)

<div class="topic-metadata">

**Author:** [@anaconda\_wly](https://www.ruby-forum.com/u/anaconda_wly)\
**Replies:** 1\
**Last updated:** [June 15, 2010, 8:16am UTC](https://www.ruby-forum.com/t/how-to-add-configuration/188057 "2010-06-15T08:16:56Z")

</div>

I want to add configuration used for my own app, seems like the second you mentioned. I create a file, adding a global variable in it for my use. Then I include the module when needed. Though it works fine, I don’t th…

---

## [ActionController::RoutingError in Posts#index](https://www.ruby-forum.com/t/actioncontroller-routingerror-in-posts-index/190099)

<div class="topic-metadata">

**Author:** [@quangn](https://www.ruby-forum.com/u/quangn)\
**Replies:** 1\
**Last updated:** [June 15, 2010, 2:22am UTC](https://www.ruby-forum.com/t/actioncontroller-routingerror-in-posts-index/190099 "2010-06-15T02:22:32Z")

</div>

Not sure what happened to my last post so I will try again, here goes… I am getting the following error and not sure why? I think its because I am sending over an id when I shouldn’t be. I was logged into my app when…

---

## [How to check if an attribute has changed?](https://www.ruby-forum.com/t/how-to-check-if-an-attribute-has-changed/190095)

<div class="topic-metadata">

**Author:** [@kinunt](https://www.ruby-forum.com/u/kinunt)\
**Replies:** 1\
**Last updated:** [June 14, 2010, 9:22pm UTC](https://www.ruby-forum.com/t/how-to-check-if-an-attribute-has-changed/190095 "2010-06-14T21:22:56Z")

</div>

I have read about dirty object but I’m not sure if they are still present or recommended in Rails.

---

## [LoadError: no such file to load -- gem not found in irb, but found in app console](https://www.ruby-forum.com/t/loaderror-no-such-file-to-load-gem-not-found-in-irb-but-found-in-app-console/189919)

<div class="topic-metadata">

**Author:** [@kadoudal](https://www.ruby-forum.com/u/kadoudal)\
**Replies:** 2\
**Last updated:** [June 14, 2010, 2:24pm UTC](https://www.ruby-forum.com/t/loaderror-no-such-file-to-load-gem-not-found-in-irb-but-found-in-app-console/189919 "2010-06-14T14:24:44Z")

</div>

I installed a gem (sudo gem install vzaar) , which is listed now in the gem list : … gem list rubyist-aasm (2.1.1) SystemTimer (1.2) vzaar (0.2.2.1) xml-simple (1.0.12) in my app I am using this gem, without an…

---

## [How to create embedding code in ror](https://www.ruby-forum.com/t/how-to-create-embedding-code-in-ror/189865)

<div class="topic-metadata">

**Author:** [@soesan01](https://www.ruby-forum.com/u/soesan01)\
**Replies:** 7\
**Last updated:** [June 14, 2010, 11:44am UTC](https://www.ruby-forum.com/t/how-to-create-embedding-code-in-ror/189865 "2010-06-14T11:44:53Z")

</div>

Hi guys, Could you give me a sample or link for creating embedding code in ruby on rails? Thanks, Yudi S.

---

## [Facebook, authlogic, and OAuth2](https://www.ruby-forum.com/t/facebook-authlogic-and-oauth2/188133)

<div class="topic-metadata">

**Author:** [@alex](https://www.ruby-forum.com/u/alex)\
**Replies:** 7\
**Last updated:** [June 13, 2010, 8:44pm UTC](https://www.ruby-forum.com/t/facebook-authlogic-and-oauth2/188133 "2010-06-13T20:44:46Z")

</div>

Has anyone gotten started with getting the OAuth2 replacement for Facebook Connect working with auth\_logic? I know there is an OAuth2 gem (http://intridea.com/2010/4/22/oauth2- gem-just-in-time-for-facebook-graph?blog…

---

## [Declarative authorization rules filename](https://www.ruby-forum.com/t/declarative-authorization-rules-filename/190076)

<div class="topic-metadata">

**Author:** [@philostler](https://www.ruby-forum.com/u/philostler)\
**Replies:** 0\
**Last updated:** [June 13, 2010, 2:38pm UTC](https://www.ruby-forum.com/t/declarative-authorization-rules-filename/190076 "2010-06-13T14:38:53Z")

</div>

Hi, The declarative authorization gem looks for it’s rules by default in a file named authorization\_rules.rb within config. I want to change the name of the rules file but can’t find a way in the docs to tell declara…

---

## [How not to include the same javascript files more than once?](https://www.ruby-forum.com/t/how-not-to-include-the-same-javascript-files-more-than-once/190063)

<div class="topic-metadata">

**Author:** [@winterheat](https://www.ruby-forum.com/u/winterheat)\
**Replies:** 1\
**Last updated:** [June 12, 2010, 6:31pm UTC](https://www.ruby-forum.com/t/how-not-to-include-the-same-javascript-files-more-than-once/190063 "2010-06-12T18:31:10Z")

</div>

In Ruby on Rails, if a partial (such as \_msgbox.html.erb) need to use Javascript by javascript\_include\_tag :defaults but then, the page layout or other view may also have that same line, so the same javascript files …

---

## [Redirections, Duplicate Content & Permalinks](https://www.ruby-forum.com/t/redirections-duplicate-content-permalinks/190059)

<div class="topic-metadata">

**Author:** [@joe](https://www.ruby-forum.com/u/joe)\
**Replies:** 2\
**Last updated:** [June 12, 2010, 4:22pm UTC](https://www.ruby-forum.com/t/redirections-duplicate-content-permalinks/190059 "2010-06-12T16:22:05Z")

</div>

Hi, Recently I’ve looked at trying to get a permalink system up to increase my site’s ranking in google (and to have nice looking URLs); however I’ve been very worried about google and duplicate content. I currently …

---

## [Status 500 internal server error "no such file to load sqlit](https://www.ruby-forum.com/t/status-500-internal-server-error-no-such-file-to-load-sqlit/190071)

<div class="topic-metadata">

**Author:** [@m\_bhupendrain](https://www.ruby-forum.com/u/m_bhupendrain)\
**Replies:** 0\
**Last updated:** [June 12, 2010, 3:34pm UTC](https://www.ruby-forum.com/t/status-500-internal-server-error-no-such-file-to-load-sqlit/190071 "2010-06-12T15:34:58Z")

</div>

Please help me am using ubantu as operating system and geting following error \[2010-06-12 19:00:14\] INFO WEBrick 1.3.1 \[2010-06-12 19:00:14\] INFO ruby 1.8.7 (2008-08-11) \[i486-linux\] \[2010-06-12 19:00:19\] INFO WEB…

---

## [Heroku good for a rails business host?](https://www.ruby-forum.com/t/heroku-good-for-a-rails-business-host/190066)

<div class="topic-metadata">

**Author:** [@Kayle](https://www.ruby-forum.com/u/Kayle)\
**Replies:** 1\
**Last updated:** [June 12, 2010, 3:19pm UTC](https://www.ruby-forum.com/t/heroku-good-for-a-rails-business-host/190066 "2010-06-12T15:19:57Z")

</div>

Just curious… our company is new to Rails and we host all our sites for our clients. We want a good, fast, reliable host. One that’s scalable and easy to deploy. Heroku (http://heroku.com) was recommended to me and I …

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

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