The function should bbe Def quantity_sold Delivered_item + item_price End
Then call quantity_sold. Removing attr_accesible is a very bat idea. 2010/9/23, Abder-Rahman Ali <[email protected]>: > Regarding the fields in SQL Manager, I found that I was browsing the > wrong database. > > And, in my model in order to get values for "receive" amd "deliver" I > had to remove this line: > > attr_accessor :receive, :deliver > -- > 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 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. > > -- Enviado desde mi dispositivo móvil -- 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.

