Ruby on Rails Thursday, January 31, 2013

Being new to rails and ruby I'm a bit lost.

Have a data entry scaffold, Details, which has name, string,
cost1:integer cost2:integer cost3: Total:integer
The user inputs puts a value into each of 3 fields.

The totals field should ideally be automatically updated as each value
is entered or changed. Then Save stores all 4 values into the database.
One of the values cost3 should display a tax value of 10% of that
particular entry beside the entry.

Is this possible to do this or should I have something like a cart and
display the calculations in that?

I have read the Agile Web Development books, Enterprise Recipes,
Advanced Rails, Why's Poignant, Head First Rails which is for rails2 so
some scripts fail.
None explain how to do some of the more simple things like the above or
taking a value from a select list and using it to update a field in
another view.
I've been searching for days with no luck,
Thank you in advance
R

--
Posted via http://www.ruby-forum.com/.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

No comments:

Post a Comment