I am using update rails code and suddenly login engine broke.I am not sure, if its because of rails update, but the problem is, In the user signup page, without entering any field in the form, if i click submit, the engine passes the validation. Of course, the empty user wont be actually entered into the users table, but no validations is taking place and hence no error message is displayed.Simply, the following statement there in user_controller.rb: if @user.save flash[:notice] = "Signup successful" redirect_to :login end is getting executed and the controller code, thinks the user is entered. I tried to figure it out.But i guess, I have never seen such wierd stuff. --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
However, restarting the server temporarily fixes the problem and validation would actually take place. But, let it run for sometime and there we go again, with this wierd problem. On 9/1/06, hemant <gethemant-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > > I am using update rails code and suddenly login engine broke.I am not > sure, if its because of rails update, but the problem is, In the user signup > page, without entering any field in the form, if i click submit, the engine > passes the validation. > > Of course, the empty user wont be actually entered into the users table, > but no validations is taking place and hence no error message is > displayed.Simply, the following statement there in user_controller.rb: > > if @user.save > flash[:notice] = "Signup successful" > redirect_to :login > end > > is getting executed and the controller code, thinks the user is entered. > > I tried to figure it out.But i guess, I have never seen such wierd stuff. > >-- nothing much to talk --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
have you update the engines plugin as well as the login engine? usually when you update rails, these need updating too dion On 9/1/06, hemant <gethemant-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > However, restarting the server temporarily fixes the problem and > validation would actually take place. > > But, let it run for sometime and there we go again, with this wierd > problem. > > > > > On 9/1/06, hemant <gethemant-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > > I am using update rails code and suddenly login engine broke.I am not > > sure, if its because of rails update, but the problem is, In the user signup > > page, without entering any field in the form, if i click submit, the engine > > passes the validation. > > > > Of course, the empty user wont be actually entered into the users table, > > but no validations is taking place and hence no error message is > > displayed.Simply, the following statement there in user_controller.rb: > > > > if @user.save > > flash[:notice] = "Signup successful" > > redirect_to :login > > end > > > > is getting executed and the controller code, thinks the user is entered. > > > > I tried to figure it out.But i guess, I have never seen such wierd > > stuff. > > > > > > > -- > nothing much to talk > > > >-- www.blogsaic.com search, post, blog --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---