Ruby on Rails Friday, March 2, 2012

Running "rails new yourapplicationname" creates all the requisite files, however two of them have bad syntax.

session_store.rb

is:
YourApplicationName::Application.config.session_store :cookie_store, key: '_yourapplicationname_session'

should be:
YourApplicationName::Application.config.session_store :cookie_store, :key => '_yourapplicationname_session'



wrap_parameters.rb

is:
wrap_parameters format: [:json]

should be:
wrap_parameters :format => [:json]


ruby -v
ruby 1.9.2p290 (2011-07-09 revision 32553) [x86_64-darwin10.8.0]

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/2R4UkmR2hHUJ.
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.

No comments:

Post a Comment