I have looked in all the places I can't hunk to solve a problem I'm currently 
having. 

Basic situation:

Model a

has_many :model_bs, :dependent => :destroy

Model b

belongs_to : model_a

What I would like is for an initial model_b record to be created when a new 
model_a record is created. I've seen examples for ror but they are failing. I 
seems this is something that should be done in the model like;

Model_a.rb
class ModelA < AR::Base
...
has_many :model_bs, :dependent => :destroy

after_create :create_model_b
...
end

I'm fairly new to ror and hobo, any advice in this matter would be greatly 
appriciated. 

-- 
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