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.