Thanks Colin,
The development log looks like its going to be useful in the future.
This is what I get for the country:
country"=>{"id"=>"6"}, so it looks like a value has been selected, but
the validation still fails...
Colin Law wrote:
> On 4 August 2010 15:37, disruptive tech <[email protected]> wrote:
>> select an actual country - it says:
>>
>> Country can't be blank
>>
>> Any idea what this could mean or how should I do this?
>
> It means that you have said validates_presence_of country and it is
> blank, so is not present, so the validation fails. Look in
> development.log to see what values are being passed to the controller.
> If necessary use ruby-debug to break in to the controller at the save
> to see what you have put into the record being saved. See the Rails
> Guide on debugging if you do not know how to do this.
>
> Colin
--
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.