On Apr 21, 11:18 pm, Adam Meehan <[EMAIL PROTECTED]> wrote:

[snip]

> You could do:
>
> @person = Person.create(params[:person]) do |p|
>   p.has_rails_patch = false
>   p.set_status(:uncool)
> end

I like this a lot.  I always thought create should work that way.

K
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Core" 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-core?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to