I have a resource defined in routes.rb like so:
map.resources :users
I like using the cleanest link_to option, which would be:
link_to @user
I'd like to add an additional parameter to this call, though: "view=local"
If I were using the user_path, I'd do this:
link_to user_path(@user, { :view => 'local' })
Is there a way to get the same result without including the user_path function explicitly? Ideally, I'd do something like:
link_to @user, { :view => 'local' }
but that doesn't seem to work.