Read more

url_for with added params

Henning Koch
July 19, 2011Software engineer at makandra GmbH

You cannot say this because url_for only takes one parameter:

url_for(@deal, :tab => 'general') # won't work
Illustration online protection

Rails Long Term Support

Rails LTS provides security patches for old versions of Ruby on Rails (2.3, 3.2, 4.2 and 5.2)

  • Prevents you from data breaches and liability risks
  • Upgrade at your own pace
  • Works with modern Rubies
Read more Show archive.org snapshot

Just use polymorphic_url instead:

polymorphic_url(@deal, :tab => 'general')
Posted by Henning Koch to makandra dev (2011-07-19 19:09)