You've got to be kidding? Why do these people waste their time with such pointless syntactical changes? Does it improve performance? No. Does it improve readability? No.
Why does the comment in "wrap_parameters.rb" say the following? # Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array. On Friday, March 2, 2012 2:31:18 PM UTC-5, Prem Sichanugrist wrote: > > No, that is Ruby 1.9 hash syntax. It will generate that syntax if you're > using Ruby 1.9. > > - Prem > > On Mar 2, 2012, at 1:31 PM, Mark Peterson wrote: > > 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] > LX9901145:initializers m2peters$ gem list > > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Core" group. > To view this discussion on the web visit > https://groups.google.com/d/msg/rubyonrails-core/-/pJnDpXo8gf4J. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/rubyonrails-core?hl=en. > > > On Friday, March 2, 2012 2:31:18 PM UTC-5, Prem Sichanugrist wrote: > > No, that is Ruby 1.9 hash syntax. It will generate that syntax if you're > using Ruby 1.9. > > - Prem > > On Mar 2, 2012, at 1:31 PM, Mark Peterson wrote: > > 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] > LX9901145:initializers m2peters$ gem list > > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Core" group. > To view this discussion on the web visit > https://groups.google.com/d/msg/rubyonrails-core/-/pJnDpXo8gf4J. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/rubyonrails-core?hl=en. > > > On Friday, March 2, 2012 2:31:18 PM UTC-5, Prem Sichanugrist wrote: > > No, that is Ruby 1.9 hash syntax. It will generate that syntax if you're > using Ruby 1.9. > > - Prem > > On Mar 2, 2012, at 1:31 PM, Mark Peterson wrote: > > 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] > LX9901145:initializers m2peters$ gem list > > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Core" group. > To view this discussion on the web visit > https://groups.google.com/d/msg/rubyonrails-core/-/pJnDpXo8gf4J. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/rubyonrails-core?hl=en. > > > -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-core/-/Ep4ReP7snLQJ. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.
