This project is archived and is in readonly mode.

#1415 ✓wontfix
Piotr Usewicz

Route generator does not work with to_param returning a Fixnum

Reported by Piotr Usewicz | November 19th, 2008 @ 01:44 PM | in 2.x



class Shop
  def to_param
    1
  end
end

map.resources :shops

form_for Shop.new => TypeError: can't convert Fixnum into String

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

Attachments

Pages