Like Eric said.

Y.new
Y.attribute1 = attribute1value
Y.attribute2 = attribute2value
Y.save

..etc

Or

Y.new(params[:y])
Y.save

One controller can manage multiple models, and one model can be
managed by multiple controllers.  I frequently set up additional
Restful controllers to manage single attribute changes within a model,
even though another controller manages other parts of the model.

--

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


Reply via email to