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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.
On 14 October 2012 09:31, Shaban K. <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> 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?Have a look at the Rails Guide on debugging, that will give you ideas on how to debug the code and work out what is going wrong. Colin> > 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > For more options, visit https://groups.google.com/groups/opt_out. > >-- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.
On your _form.html.erb, you have to use as :- <%= form_for (@user, :validate => true) do |f|%> 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:> > 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org 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.