Displaying 1 result from an estimated 1 matches for "goals_url".
2007 Jan 13
2
Help with destroy method - newbie
Hello:
I have a destroy method in my controller - pretty standard:
def destroy
@goal = Goal.find(params[:id])
respond_to do |format|
format.html { redirect_to goals_url }
format.xml { head :ok }
end
end
And then I have a listing view which has the destroy method in the view
- also pretty standard:
<%= link_to ''Delete'', { :action => ''destroy'', :id => goal }, :confirm
=> ''Are you sure?'',...