This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Drop this file in config/initializers to run your Rails project on Ruby 1.9. | |
| # This is three separate monkey patches -- see comments in code below for the source of each. | |
| # None of them are original to me, I just put them in one file for easily dropping into my Rails projects. | |
| # Also see original sources for pros and cons of each patch. Most notably, the MySQL patch just assumes | |
| # that everything in your database is stored as UTF-8. This was true for me, and there's a good chance it's | |
| # true for you too, in which case this is a quick, practical solution to get you up and running on Ruby 1.9. | |
| # | |
| # Andre Lewis 1/2010 | |
| # encoding: utf-8 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| This example shows how to setup an environment running Rails 3 beta 3 under 1.9.2-head with a 'rails3' gem set. | |
| ∴ rvm update --head | |
| # ((Open a new shell)) or do 'rvm reload' | |
| # If you do not already have the ruby interpreter installed, install it: | |
| ∴ rvm install 1.9.2-head | |
| # Switch to 1.9.2-head and gemset rails3, create if it doesn't exist. | |
| ∴ rvm --create use 1.9.2-head@rails3 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| gem 'devise_invitable' | |
| gem 'devise' | |
| gem 'warden' | |
| gem 'formtastic' | |
| gem 'haml' | |
| rake('gems:install', :sudo => true) | |
| generate 'devise_install' | |
| generate 'devise User' |
NewerOlder