Newbie SaltedHashLogin add new fields

Hello everyone, with some work i manage to make the SaltedHashLogin
works, and it works ok, now i want to use the same table and add some
new fields, one picture field so users can load his pictures. So here is
my trouble i use mysql and add the new fields, after that i change the
line changeable_fields = [‘firstname’, ‘lastname’], to
changeable_fields = [‘firstname’, ‘lastname’, ‘sex’] in the
user_controller.rb file.
so i can add new field, just try with one field so i can se how it
works, after a some time i figure out that i need add a line in the
localize file eng.yml, to see the correct label, and in the signup form
i see the field with the input box for this new field. However in the
edit area the new field does not show, so i review the _edit.rhtml file
and add the line <%= form_input changeable(user, “sex”), “sex” %>
and that show me the label for the sex field however not the input
box, so if some one can give me a clue of how to work this. Thanks

On Wed Jul 05, 2006 at 09:36:18PM +0200, Alejandro Perez wrote:

i see the field with the input box for this new field. However in the
edit area the new field does not show, so i review the _edit.rhtml file
and add the line <%= form_input changeable(user, “sex”), “sex” %>
and that show me the label for the sex field however not the input
box,

Salted Hash thought it would be a good idea to write a set of wrappers
around almost every ActionView proc it uses, for whatever reason. that,
and the .yml stuff, and the fact that you had to manually modify about
10 files (do you remember which ones?) to get it going makes it hard to
really muck with in a timely manner.

i’d check out acts_as_authenticated. its so simple i actually decided to
modify it to suit the needs of a project rather than just start from
scratch…

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs