[Rails] Re: form validation not showing errors
On your _form.html.erb, you have to use as :-
<%= form_for (@user, :validate => true) do |f|%>
Try this.... :validates => true triggers validations.
Try this.... :validates => true triggers validations.
Hope this helps....
On Sunday, October 14, 2012 2:02:27 PM UTC+5:30, Ruby-Forum.com User wrote:
-- On Sunday, October 14, 2012 2:02:27 PM UTC+5:30, Ruby-Forum.com User wrote:
Hi I have a simple form where the user can sign up with an email and
password and click the create button but when this is done no action
happens and even when I fill in the form blank no error messages
are shown .What could be the issue in my code?
Attachments:
http://www.ruby-forum.com/attachment/7801/_form.html.erb
http://www.ruby-forum.com/attachment/7802/new.html.erb
http://www.ruby-forum.com/attachment/7803/_error_ messages.html.erb
http://www.ruby-forum.com/attachment/7804/users_ controller.rb
http://www.ruby-forum.com/attachment/7805/user.rb
--
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/dQAMDrgwhUQJ.
For more options, visit https://groups.google.com/groups/opt_out.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home