2011/8/18 Cássio Godinho <cassiopgodi...@gmail.com>: > In a form I input height and weight values and want to multiply those two > values and store on the resulta row on database. I was trying something like > that > def criar > @user = User.new(params[:user]) > @result = @user.height * @user.weight > @user.result = @result > But its not working, what am i doing wrong?
What does "not working" mean? -- Hassan Schroeder ------------------------ hassan.schroe...@gmail.com http://about.me/hassanschroeder twitter: @hassan -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.