[Rails] Re: creating 2 things at the same time?

2009-10-04 Thread Sijo Kg
And assuming you are on rails 2.3 -- 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 rubyonrails-talk@googlegr

[Rails] Re: creating 2 things at the same time?

2009-10-04 Thread Sijo Kg
Hi Mike Chai What I understood is you have relations like comment has_one picture picture belongs_to comment As an example comment name:string picture name:string,comment_id:integer So do as below in comments_controller new action @comment = Comment.new @comment.picture = Picture.new

[Rails] Re: creating 2 things at the same time?

2009-10-04 Thread Samer Abukhait
Question is not clear, do you want to create an empty picture record anyway? --~--~-~--~~~---~--~~ 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 rubyonrails-talk@googlegro