Displaying 2 results from an estimated 2 matches for "addcash".
Did you mean:
addcase
2005 Jul 28
3
Help troubleshooting save
I done plenty of saves before in rails, but I must be missing
something simple with this. Can a fresh set of eyes take a look at
this and see why it is not saving:
def addcash(uid)
c = Trade.new
c.attributes = {"user_id" => uid,
"tradetype" => ''9'',
"cash" => 10000}
breakpoint
if c.save
breakpoint
flash[''notice''] = "Signup successful...
2005 Aug 07
8
Ajax forms and redirects
Here is an example that seems perfect for Ajax that I have not seen
implemented nor can figure out how to do it. I am hoping someone can
give me some pointers.
On the sign-up page, I would like to do my validations (password
length, username uniqueness,etc ) Ajax-style. But if all validates,
then redirect to the success page. The combining of redirection to a
new page with Ajax is throwing me.