hi am a new ror user need some help for validation errors.. this is the error i see....... '''''''''''''' NoMethodError in Login#add_user Showing app/views/login/add_user.rhtml where line #14 raised: undefined method `password'' for #<User:0x46d6a4c> Extracted source (around line #14): 11: </p> 12: <p> 13: <label for="user_password" >Password:</label> 14: <%= form.password_field :password, :size => 40 %> 15: </p> 16: <p> 17: <label for="user_password_confirmation" >Confirm:</label> '''''''''''''' Please help asap.. am tryn to validate users using password and a salt value. --~--~---------~--~----~------------~-------~--~----~ 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?hl=en -~----------~----~----~----~------~----~------~--~---
u need add a custom attribute to your user model: class User < ActiveRecord attr_accessor :password #other code end 2008/1/10, dev_ror <devendra9686-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>:> > hi > am a new ror user > need some help for validation errors.. > this is the error i see....... > > '''''''''''''' > NoMethodError in Login#add_user > Showing app/views/login/add_user.rhtml where line #14 raised: > > undefined method `password'' for #<User:0x46d6a4c> > > Extracted source (around line #14): > > 11: </p> > 12: <p> > 13: <label for="user_password" >Password:</label> > 14: <%= form.password_field :password, :size => 40 %> > 15: </p> > 16: <p> > 17: <label for="user_password_confirmation" >Confirm:</label> > > '''''''''''''' > > Please help asap.. > am tryn to validate users using password and a salt value. > > >--~--~---------~--~----~------------~-------~--~----~ 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?hl=en -~----------~----~----~----~------~----~------~--~---
thnx will let u kno if it works.... On Jan 10, 1:04 pm, "ao tianlong" <aotianl...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> u need add a custom attribute to your user model: > class User < ActiveRecord > attr_accessor :password > > #other code > end > 2008/1/10, dev_ror <devendra9...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>: > > > > > hi > > am a new ror user > > need some help for validation errors.. > > this is the error i see....... > > > '''''''''''''' > > NoMethodError in Login#add_user > > Showing app/views/login/add_user.rhtml where line #14 raised: > > > undefined method `password'' for #<User:0x46d6a4c> > > > Extracted source (around line #14): > > > 11: </p> > > 12: <p> > > 13: <label for="user_password" >Password:</label> > > 14: <%= form.password_field :password, :size => 40 %> > > 15: </p> > > 16: <p> > > 17: <label for="user_password_confirmation" >Confirm:</label> > > > '''''''''''''' > > > Please help asap.. > > am tryn to validate users using password and a salt value.--~--~---------~--~----~------------~-------~--~----~ 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?hl=en -~----------~----~----~----~------~----~------~--~---
thnx it really helpd.. On Jan 10, 1:04 pm, "ao tianlong" <aotianl...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> u need add a custom attribute to your user model: > class User < ActiveRecord > attr_accessor :password > > #other code > end > 2008/1/10, dev_ror <devendra9...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>: > > > > > hi > > am a new ror user > > need some help for validation errors.. > > this is the error i see....... > > > '''''''''''''' > > NoMethodError in Login#add_user > > Showing app/views/login/add_user.rhtml where line #14 raised: > > > undefined method `password'' for #<User:0x46d6a4c> > > > Extracted source (around line #14): > > > 11: </p> > > 12: <p> > > 13: <label for="user_password" >Password:</label> > > 14: <%= form.password_field :password, :size => 40 %> > > 15: </p> > > 16: <p> > > 17: <label for="user_password_confirmation" >Confirm:</label> > > > '''''''''''''' > > > Please help asap.. > > am tryn to validate users using password and a salt value.--~--~---------~--~----~------------~-------~--~----~ 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?hl=en -~----------~----~----~----~------~----~------~--~---