Hello, The problem I am having is I have a form where a user can edit their data that does not include their password. I have another form that I allow them to change their password. Both forms use the before_update method that hashes the password. There is no password in the first form. Am I making this too complicated? How do I call the hash_password for only the second form? Both forms use the user model. Thanks Frank -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060106/d4461467/attachment.html
Has anyone used this system in order to create Admin and Regular user roles? I haven''t figured out how to give a regular user access to more than one action. Say, they log-in, and can go to controller/action - but ONLY one as that is all the database table seems to allow for....anyone know how to fix this? Here is a link to the system. http://wiki.rubyonrails.com/rails/pages/LoginGeneratorACLSystem __________________________________________ Yahoo! DSL ? Something to write home about. Just $16.99/mo. or less. dsl.yahoo.com
JM MC wrote:> Has anyone used this system in order to create Admin > and Regular user roles? I haven''t figured out how to > give a regular user access to more than one action. > Say, they log-in, and can go to controller/action - > but ONLY one as that is all the database table seems > to allow for....anyone know how to fix this? > > Here is a link to the system. > http://wiki.rubyonrails.com/rails/pages/LoginGeneratorACLSystem >I''ve been using the user/login_engine system with good success. It can be a little tricky to set up if you don''t follow the directions, but it works well. That system allows you to limit access to any controller/action pair in your system to users with any number of roles. http://rails-engines.org/ _Kevin -- Posted via http://www.ruby-forum.com/.
I tried using this but had trouble getting it installed. Running ruby/script/plugin install login_engine gave me a "ruby: no such file or directory -- script/plugin error" Have any trouble installing the engine/plugin? --- Kevin Olbrich <kevin.olbrich@duke.edu> wrote:> JM MC wrote: > > Has anyone used this system in order to create > Admin > > and Regular user roles? I haven''t figured out how > to > > give a regular user access to more than one > action. > > Say, they log-in, and can go to controller/action > - > > but ONLY one as that is all the database table > seems > > to allow for....anyone know how to fix this? > > > > Here is a link to the system. > > >http://wiki.rubyonrails.com/rails/pages/LoginGeneratorACLSystem> > > > I''ve been using the user/login_engine system with > good success. It can > be a little tricky to set up if you don''t follow the > directions, but it > works well. > > That system allows you to limit access to any > controller/action pair in > your system to users with any number of roles. > > http://rails-engines.org/ > > _Kevin > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >__________________________________________ Yahoo! DSL ? Something to write home about. Just $16.99/mo. or less. dsl.yahoo.com
You''re definitely using Rails 1.0? Have you managed to install any other plugins? - james On 1/6/06, jonathan Mcintire <hatejonny@yahoo.com> wrote:> I tried using this but had trouble getting it > installed. > Running ruby/script/plugin install login_engine gave > me a > "ruby: no such file or directory -- script/plugin > error" > > Have any trouble installing the engine/plugin? > > > --- Kevin Olbrich <kevin.olbrich@duke.edu> wrote: > > > JM MC wrote: > > > Has anyone used this system in order to create > > Admin > > > and Regular user roles? I haven''t figured out how > > to > > > give a regular user access to more than one > > action. > > > Say, they log-in, and can go to controller/action > > - > > > but ONLY one as that is all the database table > > seems > > > to allow for....anyone know how to fix this? > > > > > > Here is a link to the system. > > > > > > http://wiki.rubyonrails.com/rails/pages/LoginGeneratorACLSystem > > > > > > > I''ve been using the user/login_engine system with > > good success. It can > > be a little tricky to set up if you don''t follow the > > directions, but it > > works well. > > > > That system allows you to limit access to any > > controller/action pair in > > your system to users with any number of roles. > > > > http://rails-engines.org/ > > > > _Kevin > > > > -- > > Posted via http://www.ruby-forum.com/. > > _______________________________________________ > > Rails mailing list > > Rails@lists.rubyonrails.org > > http://lists.rubyonrails.org/mailman/listinfo/rails > > > > > > > > > __________________________________________ > Yahoo! DSL ? Something to write home about. > Just $16.99/mo. or less. > dsl.yahoo.com > > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >
I do have Rails 1.0 and I don''t think I''ve installed a plugin before, no... I quickly looked on the RoR site for documentation on installing a plug in but didn''t find anything. --- James Adam <james.adam@gmail.com> wrote:> You''re definitely using Rails 1.0? Have you managed > to install any > other plugins? > > - james > > On 1/6/06, jonathan Mcintire <hatejonny@yahoo.com> > wrote: > > I tried using this but had trouble getting it > > installed. > > Running ruby/script/plugin install login_engine > gave > > me a > > "ruby: no such file or directory -- script/plugin > > error" > > > > Have any trouble installing the engine/plugin? > > > > > > --- Kevin Olbrich <kevin.olbrich@duke.edu> wrote: > > > > > JM MC wrote: > > > > Has anyone used this system in order to create > > > Admin > > > > and Regular user roles? I haven''t figured out > how > > > to > > > > give a regular user access to more than one > > > action. > > > > Say, they log-in, and can go to > controller/action > > > - > > > > but ONLY one as that is all the database table > > > seems > > > > to allow for....anyone know how to fix this? > > > > > > > > Here is a link to the system. > > > > > > > > > >http://wiki.rubyonrails.com/rails/pages/LoginGeneratorACLSystem> > > > > > > > > > I''ve been using the user/login_engine system > with > > > good success. It can > > > be a little tricky to set up if you don''t follow > the > > > directions, but it > > > works well. > > > > > > That system allows you to limit access to any > > > controller/action pair in > > > your system to users with any number of roles. > > > > > > http://rails-engines.org/ > > > > > > _Kevin > > > > > > -- > > > Posted via http://www.ruby-forum.com/. > > > _______________________________________________ > > > Rails mailing list > > > Rails@lists.rubyonrails.org > > > > http://lists.rubyonrails.org/mailman/listinfo/rails > > > > > > > > > > > > > > > > > __________________________________________ > > Yahoo! DSL ? Something to write home about. > > Just $16.99/mo. or less. > > dsl.yahoo.com > > > > _______________________________________________ > > Rails mailing list > > Rails@lists.rubyonrails.org > > > http://lists.rubyonrails.org/mailman/listinfo/rails > > > > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >__________________________________________ Yahoo! DSL ? Something to write home about. Just $16.99/mo. or less. dsl.yahoo.com
I seem to recall that I had to give the plugin install script the Url for the SVN repository to get it to work. Look in the rails plugin wiki page for the address. You will need to install the ''engines'', ''login_engine'', and ''user_engine''. If you have a user model, make sure it follows the ''UserController'' (singluar) convention rather than the ''UsersController'' (plural) convention. It will save you endless headaches. _Kevin -- Posted via http://www.ruby-forum.com/.
On Jan 6, 2006, at 9:49 AM, James Adam wrote:> You''re definitely using Rails 1.0? Have you managed to install any > other plugins? > > - james > > On 1/6/06, jonathan Mcintire <hatejonny@yahoo.com> wrote: >> I tried using this but had trouble getting it >> installed. >> Running ruby/script/plugin install login_engine gave >> me a >> "ruby: no such file or directory -- script/plugin >> error"You need ro run it like this: $ ruby script/plugin install login_engine and you might need to do a $ script/plugin discover to get an updated plugin listsing. But calling the command like you did above is why you are getting an error. Cheers- -EZra>> >> Have any trouble installing the engine/plugin? >> >> >> --- Kevin Olbrich <kevin.olbrich@duke.edu> wrote: >> >>> JM MC wrote: >>>> Has anyone used this system in order to create >>> Admin >>>> and Regular user roles? I haven''t figured out how >>> to >>>> give a regular user access to more than one >>> action. >>>> Say, they log-in, and can go to controller/action >>> - >>>> but ONLY one as that is all the database table >>> seems >>>> to allow for....anyone know how to fix this? >>>> >>>> Here is a link to the system. >>>> >>> >> http://wiki.rubyonrails.com/rails/pages/LoginGeneratorACLSystem >>>> >>> >>> I''ve been using the user/login_engine system with >>> good success. It can >>> be a little tricky to set up if you don''t follow the >>> directions, but it >>> works well. >>> >>> That system allows you to limit access to any >>> controller/action pair in >>> your system to users with any number of roles. >>> >>> http://rails-engines.org/ >>> >>> _Kevin >>> >>> -- >>> Posted via http://www.ruby-forum.com/. >>> _______________________________________________ >>> Rails mailing list >>> Rails@lists.rubyonrails.org >>> http://lists.rubyonrails.org/mailman/listinfo/rails >>> >> >> >> >> >> >> >> __________________________________________ >> Yahoo! DSL ? Something to write home about. >> Just $16.99/mo. or less. >> dsl.yahoo.com >> >> _______________________________________________ >> Rails mailing list >> Rails@lists.rubyonrails.org >> http://lists.rubyonrails.org/mailman/listinfo/rails >> > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails-Ezra Zygmuntowicz Yakima Herald-Republic WebMaster http://yakimaherald.com 509-577-7732 ezra@yakima-herald.com