Thanks Henry - it seemed more natural to just use a :required field
but I'm glad there was a way to do it.  It's no wonder I was searching
so long and couldn't find it - I wasn't using the right key words!

On Jan 22, 4:22 pm, Henry Baragar <[email protected]>
wrote:
> On January 22, 2011 02:11:02 pm Henry H wrote:
>
> > I tried to do it this way but it just gave me an error:
>
> > belongs_to :location, :required
>
> > I looked through the tutorials and did searches on google but came up
> > empty handed.  I'm sure I'm missing something but this seems like
> > something many folks would want to do...
>
> Remove the ", :required" and add the line
>
>         validates_presence_of :location_id
>
> Cheers,
> Henry
>
> --
> Henry Baragar
> Instantiated Software

-- 
You received this message because you are subscribed to the Google Groups "Hobo 
Users" 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/hobousers?hl=en.

Reply via email to