23 Apr 2010

Upgrading Restful Authentication Plugin for Rails 3

Rails 3 posted by kapil

Here at Vinsol, we love to be on cutting edge of Ruby on Rails.

When I tried to use restful authentication generator plugin for Rails 3 app, I got ‘Could not find generator authenticated’ error. Generator system in Rails3 is now replaced with Thor which is a scripting framework that replaces rake and sake. Rails 2.x.x finds generators in generators/ or rails_generators/ directory of a gem or a plugin, but the new Thor based system looks for lib/generators/ or lib/rails_generators/ directory.

I forked the original restful-authentication plugin and did the necessary changes to make it compatible with Rails 3.0.0.beta3. Updated code is available at http://github.com/Satish/restful-authentication and the original project page is here.

Comments welcome.

No related posts.

Related posts brought to you by Yet Another Related Posts Plugin.

  • I think Restful Authentication itself is not so nice. We have better plugins/gem to use. Tried auth-logic or devise?
  • Satish
  • RadarListener
    Just a small correction: Thor does not replace Rake. Thor is a tool used for generating templates, rake is a tool used for running things such as db:migrate and cucumber:ok.
blog comments powered by Disqus