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.