John W. Long wrote:
> On Dec 22, 2007, at 6:25 PM, Maged Makled wrote:
>> So it seems that it is doing validation, so why I'm not getting the
>> regualr ROR Validation box on my page and it is going to the next
>> page
>> any ways?
>
> Because the error_messages_for('contact') helper call is not in your
> view:
>
> http://api.rubyonrails.com/classes/ActionView/Helpers/ActiveRecordHelper.html#M001005
>
> --
> John Long
> http://wiseheartdesign.com
I tried that but still didn't work. Here is the question,
even without error_messages_for , it is not supposed to go to the next
page if I have validates_presence_of :first_name in my model, right?
the weired thing is, it didn't save anything to the DB but still went to
the next page. here is how the top part of my view looks now.
**
<%= error_messages_for 'contact' -%>
<% form_for :contact, :url => {:action => :auto, :id => @contact} do
|form| %>
***
Thanks
Maged Makled
--
Posted via http://www.ruby-forum.com/.
_______________________________________________
Radiant mailing list
Post: [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site: http://lists.radiantcms.org/mailman/listinfo/radiant