On 4/3/07, François Beausoleil <[EMAIL PROTECTED]> wrote:
>
> Is it me or should this work:
>
> <%= link_to("link", :a => {:b => 1}) %>
>
> I expected: ?a[b]=1
>
> But instead I get: ?a=b1
I tried it on edge Rails. I get what you expected:
ActionController::Routing::Routes.generate({:a => {:b=>1}},
{:controller=>'con', :action=>'act'})
#=> "/con/act?a[b]=1"
See relevant tests:
http://dev.rubyonrails.org/browser/trunk/actionpack/test/controller/url_rewriter_test.rb?rev=6380#L168
They were added in [6343]:
http://dev.rubyonrails.org/changeset/6343
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---