I have FamiliesController with these actions:
def edit
@family=Family.find(params[:id])
end
def update
@family=Family.find(params[:i
I moved the
resources :families
to top of the routes.rb. And now it works fine.
Don't no why it is so.
Rails does not support alphanumeric IDs by default, it expects an integer.
If you need to make the IDs alphanumeric, you need to make some changes. Please look at the following resources:
Altering the primary key in Rails to be a string
http://railscasts.com/episodes/63-model-name-in-url-revised
http://railscasts.com/episodes/314-pretty-urls-with-friendlyid