I’m stumped trying to generate an URL for a working route. I’ve this
:controller => “foo”,
:action => “propose_something”
When I browse to this url:
my propose_something method gets invoked with the correct params
hash. So one would think that all is good, but I’m stuck trying to
generate the corresponding URL to pass to link_to.
I would think that this would do it:
url_for(:controller => “foo”, :action => ‘propose_something’, :foo_id
=> 1, :zap_id => 13)
But this generates this URL:
To work around this, I’ve constructed the string manually, but that
feels nasty in all sorts of ways…
Can someone point out what the heck I’m doing wrong?