[Rails] Re: Problem with restful_authentication

2009-03-18 Thread Freddy Andersen
The best option would be to create a user_profile and have the user has_one :profile, :class_name = 'user_profile'. If you have to have it in the user class you have to add them here: attr_accessible :login, :email, :password, :password_confirmation, :security_question, :extra_fields Thats

[Rails] Re: Problem with restful_authentication

2009-03-18 Thread Starr Horne
On Wed, 18 Mar 2009 14:44:33 +0100 Indu RS rails-mailing-l...@andreas-s.net wrote: I am trying to implement restful_authentication plugin in my rails application. But my user model contains extra fields like country_id, state_id, city_id, phone_number, status_id, gender etc. Is it possible

[Rails] Re: Problem with restful_authentication

2009-03-18 Thread Indu RS
Starr Horne wrote: On Wed, 18 Mar 2009 14:44:33 +0100 Indu RS rails-mailing-l...@andreas-s.net wrote: I am trying to implement restful_authentication plugin in my rails application. But my user model contains extra fields like country_id, state_id, city_id, phone_number, status_id, gender

[Rails] Re: Problem with restful_authentication

2009-03-18 Thread Starr Horne
On Wed, 18 Mar 2009 15:34:59 +0100 Indu RS rails-mailing-l...@andreas-s.net wrote: Created the migration and added extra fields. The error coming at the time of saving the data to the user model. ie I am not getting the values in the insert query (got the Are you sure you're passing the

[Rails] Re: Problem with restful_authentication

2009-03-18 Thread Indu RS
-- Starr Horne Check out my Helpdesk RailsKit: http://railskits.com/helpdesk/ Thanks again Yes , I am sure, that I am passing the extra fields to the model. -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this message because you

[Rails] Re: Problem with restful_authentication

2009-03-18 Thread Starr Horne
On Wed, 18 Mar 2009 15:51:34 +0100 Indu RS rails-mailing-l...@andreas-s.net wrote: Yes , I am sure, that I am passing the extra fields to the model. Hmm, well it should work then :) It might be useful for you to post some code. SH -- Starr Horne Check out my Helpdesk RailsKit:

[Rails] Re: Problem with restful_authentication

2009-03-18 Thread Indu RS
Thanks for your valuable help. My view code is % form_for @user ,:html = { :multipart = true } do |f| -% table tr td*/td tdUsername/td td%= f.text_field :login%/td /tr tr td*/td tdFirst Name/td td%= f.text_field :name% /td /tr tr

[Rails] Re: Problem with restful_authentication

2009-03-18 Thread Freddy Andersen
What is the error that you get? Does it say you are not allowed to mass assign this (country_id) variable? Have a look in your user model where you have the attr_accessible you are going to have to add :country_id there. --~--~-~--~~~---~--~~ You received this

[Rails] Re: Problem with restful_authentication

2009-03-18 Thread Indu RS
Freddy Andersen wrote: What is the error that you get? Does it say you are not allowed to mass assign this (country_id) variable? Have a look in your user model where you have the attr_accessible you are going to have to add :country_id there. Thank you so much for the immediate replay and