Just taking a long breath to answer you, this syntax change is not
pointless, it's a preparation for syntax like this:

some_method(name 'bob', age: 25)

in some_methods, the arguments is not a *hash* but they are named params..

Anyway, before this becomes a flame war again, post to rubyonrails-talk or
ruby ML/IRC

Wael

On Fri, Mar 2, 2012 at 22:18, Mark Peterson <[email protected]> wrote:

> Again, not sure where you got the "rage" from.
>
>
> On Friday, March 2, 2012 3:28:34 PM UTC-5, Prem Sichanugrist wrote:
>>
>> * Don't put a rage on me. I'm not the one who decide this. I explained
>> why it's being that way.
>> * You can generate you application with old syntax by using
>> --old-style-hash.
>> * That wrap_parameters thing is something else altogether. It's for when
>> you're calling `@model.to_json`.
>>
>> - Prem
>>
>> On Mar 2, 2012, at 3:15 PM, Mark Peterson wrote:
>>
>> 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<https://groups.google.com/d/msg/rubyonrails-core/-/pJnDpXo8gf4J>
>>> .
>>> To post to this group, send email to 
>>> rubyonrails-core@googlegroups.**com<[email protected]>
>>> .
>>> To unsubscribe from this group, send email to
>>> rubyonrails-core+unsubscribe@**googlegroups.com<[email protected]>
>>> .
>>> For more options, visit this group at http://groups.google.com/**
>>> group/rubyonrails-core?hl=en<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<https://groups.google.com/d/msg/rubyonrails-core/-/pJnDpXo8gf4J>
>>> .
>>> To post to this group, send email to 
>>> rubyonrails-core@googlegroups.**com<[email protected]>
>>> .
>>> To unsubscribe from this group, send email to
>>> rubyonrails-core+unsubscribe@**googlegroups.com<[email protected]>
>>> .
>>> For more options, visit this group at http://groups.google.com/**
>>> group/rubyonrails-core?hl=en<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<https://groups.google.com/d/msg/rubyonrails-core/-/pJnDpXo8gf4J>
>>> .
>>> To post to this group, send email to 
>>> rubyonrails-core@googlegroups.**com<[email protected]>
>>> .
>>> To unsubscribe from this group, send email to
>>> rubyonrails-core+unsubscribe@**googlegroups.com<[email protected]>
>>> .
>>> For more options, visit this group at http://groups.google.com/**
>>> group/rubyonrails-core?hl=en<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<https://groups.google.com/d/msg/rubyonrails-core/-/Ep4ReP7snLQJ>
>> .
>> To post to this group, send email to 
>> rubyonrails-core@googlegroups.**com<[email protected]>
>> .
>> To unsubscribe from this group, send email to
>> rubyonrails-core+unsubscribe@**googlegroups.com<[email protected]>
>> .
>> For more options, visit this group at http://groups.google.com/**
>> group/rubyonrails-core?hl=en<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/-/gZCbJN9eCh4J.
>
> 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.
>



-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Waêl Nasreddine
TechnoGate www.technogate.fr
mobile :  06.41.68.38.35
agence : 09.70.444.236
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Core" group.
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.

Reply via email to