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.