Friday, January 14, 2011

[Rails] edge rails 3.1beta

Hi all,

I just decided to switch to edge rails. So, I added the following
gem 'rails', :git => 'git://github.com/rails/rails.git'
gem "rack", :git => "git://github.com/rack/rack.git"

to my Gemfile.

As soon as I tried to run my app, one of my controllers throw this
error:

ActionView::Template::Error (undefined method `[]' for #<MyApp:
0x00000102c26a20>):

inside the view for MyApp controller, I have code that renders a
select HTML form element. eg,

f.select(:stuff, MyApp::STUFFS)

where STUFFS is an options array defined in the MyApp.rb (model)

Does anyone know why?
My application works fine under Rails 3.0.3

thanks,

Grace

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate