ruby on rails - The action 'destory' could not be found in controller -


I think I'm losing it, I do not understand why a simple delete link will all work suddenly

I'm getting this error:.

AbstractController :: Action on ActionNotFound / Action v41w74v2 Can not be found for 'Destroy' for Plan Controller

Plan Controller:

  Class Plan Controller & lt; ApplicationController before_filter: authenticate_user! DEF Index @plans = Plan.all End DEF New @plan = Plan.new def @plan = Plan.new (plan_params) If @ plan.save end up making @plan.trips.empty? @possible == plan.group.trips render "add_trips" and redirect_to plan_path, notice: "Plan successfully created" and finally show 'new' end-end def = plan = Plan.find_by_unique_identifier (parameter [: id] ) End edit DEF @plan = Plan.find_by_unique_identifier (parameter [: id]) @group = @ plan.group @possible = @ plan.group.trips Submit "add_trips" def end @plan = Plan.find_by_unique_identifier (parameter [ : Id]), then @ Plan.update_attributes (plan_params) redirect_to plan_path, note: "The plan has been successfully updated!" Render someone else's "edit" end-end add_trips @plan = Plan.find_by_unique_identifier (parameter [: id]) trip.each.update_attributes (plan_id: @ plan.id) redirect_to plans_path, notice: DEF end destroyed "plan of trip Asked for a plan show:  
  & quot; @ plan = plan.find_by_unique_identifier (parameter [: id]) @ end plan.destroy  

;% = Button_to "Delete", @plan, Method :: Delete, Data: {Confirm: "Are you sure you want to delete this plan?"}% & Gt;

What am I doing?

Yes you've got a typo destory .


Comments

Popular posts from this blog

Member with no value in F# -

java - Joda Time Interval Not returning what I expect -

c# - Showing a SelectedItem's Property -