Displaying 1 result from an estimated 1 matches for "practices_url".
2010 Dec 23
0
has_many :through full stack help
...ccessfully updated practice."
redirect_to @practice
else
render :action => ''edit''
end
end
def destroy
@practice = Practice.find(params[:id])
@practice.destroy
flash[:notice] = "Successfully destroyed practice."
redirect_to practices_url
end
end
PRACTICE _form
<% form_for @practice do |f| %>
<%= f.error_messages %>
<p>
<%= f.label :name %><br />
<%= f.text_field :name %>
</p>
<p>
<%= f.label :tax_id %><br />
<%= f.text_field :tax_id %>
<...