line_items is a model/table.
class LineItem < ActiveRecord::Base
belongs_to :cart
belongs_to :product
def full_price
unit_price * quantity
end
end
On Aug 16, 1:20 am, ct9a <[email protected]> wrote:
> hi guys,
> I am looking athttp://railscasts.com/episodes/141-paypal-basicsand
> I am trying to figure out what's line_items?
>
> Is it a reserved keyword representing a row of a multi row form or is
> it just a variable that's called line_items (and is not a reserved
> keyword)?
>
> If it is a reserved keyword/function in rails, can someone please
> point me to some documentation?
>
> thanks
>
> Gordon
--
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.