drewB wrote:
> It is overwritten

(Overridden.  Overwritten means something else.)

> because the objective requires a user_id which comes
> from a different place than the other attributes.  I could simply use
> create and add more code at the controller level 

This is the sort of very simple logic that is appropriate in the 
controller.

> but I prefer to push
> that down to the model.

Then create a method with a different name -- say, create_with_user_id 
-- or use a before_create callback to set the user_id.  Don't override 
create.
> On Oct 25, 2:15�pm, Marnen Laibow-Koser <rails-mailing-l...@andreas-

Best,
--
Marnen Laibow-Koser
http://www.marnen.org
[email protected]
-- 
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 [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
-~----------~----~----~----~------~----~------~--~---

Reply via email to