On 22 September 2010 13:37, Abder-Rahman Ali <[email protected]> wrote: > I'm looking at an example here: > http://stackoverflow.com/questions/1330273/how-to-calculate-difference-of-two-fields-on-form-submit-ruby-on-rails > > And, came along this line in MyModel: > > attr_accessor :start_amount, :end_amount > > What is "attr_accessor"?
Can I ask how long you spent trying to answer this for yourself? _Please_ do some basic Ruby tutorials and also get and read the Pickaxe Ruby book. If you keep asking such basic questions here people will eventually get tired of answering them, and when you really need help with a tricky problem you will have used up all your calling credit. Colin -- 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 [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

