github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

oma / rails-templates

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 1
    • 1
  • Source
  • Commits
  • Network (1)
  • Issues (0)
  • Downloads (0)
  • Wiki (1)
  • Graphs
  • Branch: master

click here to add a description

click here to add a homepage

  • Branches (1)
    • master ✓
  • Tags (0)
Sending Request…
Enable Donations

Pledgie Donations

Once activated, we'll place the following badge in your repository's detail box:
Pledgie_example
This service is courtesy of Pledgie.

OMAs template for creating rails project with the gems I normally use. — Read more

  cancel

  cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

changed the authentication, it used the wrong generators. It still 
requires a some manual code changes afterwards, sadly. See README 
oma (author)
Wed Oct 21 08:51:58 -0700 2009
commit  53f1209d428f6be8782369c452c1f194a2939e8a
tree    369bb49945b99e37b8e067a9238bc3c1f8c5348f
parent  a1e5cee7c9e9b69201e70cec2539622d6b7d496d
rails-templates /
name age
history
message
file README Wed Oct 21 08:51:58 -0700 2009 changed the authentication, it used the wrong g... [oma]
file authentication_subtemplate.rb Wed Oct 21 08:51:58 -0700 2009 changed the authentication, it used the wrong g... [oma]
file mail_subtemplate.rb Thu Oct 15 08:52:24 -0700 2009 added the creationg of the mailer view email.er... [oma]
file oma_rails_template.rb Wed Oct 21 08:51:58 -0700 2009 changed the authentication, it used the wrong g... [oma]
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.  
Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server