These are the two models.

class Rental < ActiveRecord::Base

  hobo_model # Don't put anything above this

  fields do
    start_date :date, :required
    active     :boolean, :default => 'true'
    end_date   :date
    timestamps
  end
  
  belongs_to :customer
  belongs_to :item
  belongs_to :rate



class Item < ActiveRecord::Base

  hobo_model # Don't put anything above this

  fields do
    name          enum_string(:Symphony, :BabyChecker, :BabyWeigh)
    serial        :string
    date_acquired :date
    date_returned :date
    timestamps
  end
  
  has_many :rentals
  
  

On Jan 23, 2011, at 11:03 AM, Henry H wrote:

> Can you post the models of your Rentals and Items, at least the parts
> which list the serial and the relationships?
> 
> On Jan 23, 9:39 am, Mark Sobkowicz <[email protected]> wrote:
>> I have two models Rentals and Items, where Item has_many :rentals and Rental 
>> belongs_to :item.   Item has name, and serial.
>> 
>> In the Rental Card, I have
>> 
>> <h4 param="heading"><a><this.item/></a> - <view:this.item.serial/></h4>
>> 
>> this.item works fine - puts the name of the item.   this.item.serial doesn't 
>> work - I get (Not Available), even though the information is being accessed 
>> by the database.   What am I doing wrong?
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Hobo Users" 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/hobousers?hl=en.
> 

-- 
You received this message because you are subscribed to the Google Groups "Hobo 
Users" 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/hobousers?hl=en.

Reply via email to