Jeremy Luebke wrote:>
>
> I found a semi working solution in :anchor like
>
> <%= link_to @testimonial.customer, testimonial_url(:id =>
> @testimonial.id, :anchor =>
''?height=300&width=300''), :class =>
> ''thickbox'' %>
>
>
> But I would like to do it right so I know there are no bugs.
>
I ran into the same issue last week and your code led me to the solution.
Looks like unreserved keys that are passed to the options hash url_for,
which is what testimonial_url calls down the line, get turned into query
string params. So:
<%= link_to @testimonial.customer, testimonial_url(:id =>
@testimonial.id, :height => 300, :width => 300), :class =>
''thickbox'' %>
Thanks for helping me! Hope this helps you.
---
Ryan Carmelo Briones
--
View this message in context:
http://www.nabble.com/Adding-Query-String-to-Link-tf4161058.html#a11839641
Sent from the RubyOnRails Users mailing list archive at Nabble.com.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---