Ramblings

Posts Tagged ‘restful_authentication

25 Aug, 2008

Rails Project Setup Script

Posted by: Matt Williams In: rails

I got tired of typing the same commands all the time and/or looking up urls for plugins.  Hence this script….  Yes, I know it’s been done before, but this does what I want (for now; I’m sure I’ll edit it).
It does the following:

Creates rails instance (optionally setting the database, etc.)
Installs rspec & rspec-rails
Installs acts_as_statemachine
Installs restful_authentication
Modifies [...]

19 Aug, 2008

rspec, restful_authentication, and login_required

Posted by: Matt Williams In: rails| tips

This is partly for myself, and partly for anyone after me…..
I have a controller generated via rspec_scaffold — yes, I know, it might not be what all the cool kids are doing, but it works.  I also have restful_authentication set up to use rspec.  So, when I go to add before_filter :login_required, autotest frowns at [...]


Categories

DrakNet Web Hosting