Displaying 1 result from an estimated 1 matches for "customeradmin".
Did you mean:
customer_admin
2006 Apr 19
0
My database model''s connection appears messed up.
...m, and the rails doesn''t appear to be making
any effort at all. I''ve put deliberately erroneous data, but still nothing.
All the development log shows is this.
This is the code in use - based on the example from Rails book
def add_customer_admin
if request.get?
@login = CustomerAdmin.new
else
@login = CustomerAdmin.new(params[:customer_admin])
STDERR.puts params
if
@login.save
else
# STDERR.puts "shitty outcome"
redirect_to(:action => :add_customer_admin)
end
end
end
I made some changes by doing a global cut and paste...