oma / rails-templates
- Source
- Commits
- Network (1)
- Issues (0)
- Downloads (0)
- Wiki (1)
- Graphs
-
Branch:
master
| name | age | message | |
|---|---|---|---|
| |
README | Wed Oct 21 08:51:58 -0700 2009 | |
| |
authentication_subtemplate.rb | Wed Oct 21 08:51:58 -0700 2009 | |
| |
mail_subtemplate.rb | Thu Oct 15 08:52:24 -0700 2009 | |
| |
oma_rails_template.rb | Wed Oct 21 08:51:58 -0700 2009 |
README
Rails templates for setting up a new rails project. *Usage* rails appname -m http://github.com/oma/rails-templates/raw/master/oma_rails_template.rb *Why* You get a lot of incredibly useful testing gems, mail functionality and user session. Inspect the code an see what, it should be fairly readable, though ugly :) *Known Issues* Some gems might have to be preinstalled using 'sudo gem install thegem' as the source or library can't be found by rake when set in the environment.rb through the template scripts "gem 'thegem', :lib => 'thelib', :source => 'thesource'" Authentication. There are no really good generators out there, as far as I know, so you need to edit the migration to use the crypted passwords, perishable tokens etc. Then you should edit the user session controller and so on. See http://railscasts.com/episodes/160-authlogic which is a very good tutorial. See the Missing Code section below for more issues *Missing code* The scripts doesn't generate all the necessary code. You're more than welcome to fork this project and make the generation of the files and editing of the generated files. in test/test_helper.rb you should add require 'test_help' require 'shoulda' require 'mocha' require 'redgreen' require 'webrat' and this on the very bottom (after 'end' of the class declaration) Webrat.configure do |config| config.mode = :rails end *Community* If you use this, download it, fork it or whatever, I'm happy for any improvement. It's designed for my own need, of course. However, I have tested it lots of times now, so it should work, but I do stumble upon wierd errors along the way while building the script.
