I’m using a MySQL server and the user my rails app is logging in as is
root;
root has all permissions.
My destroy code is default scaffolding:
def destroy
Customer.find(params[:id]).destroy
redirect_to :action => ‘list’
end
Why is
<%= link_to ‘Destroy’, :action => ‘destroy’, :id => @customer %>
not destroying the SQL row? @customer is the correct id.
Any ideas?
- David