Bogdan -

On 7-May-09, at 4:47 PM, Bogdan Pop wrote:

>
> Hi,
>
> I just faced this problem today. I have a site which will have a USER
> model and a SUBMISSION model. Apart from the cosmetics parts, each  
> user
> will be able to have multiple submissions, while each submission could
> have or not a username.
>
> Basically, registration to make a submission will be optional. My
> question is will this work if someone tries to submit and it is not
> registered?

validation is under your control - just don't enforce  
(validates_presence_of) for :user relation

J

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