Automatically provides the URL methods (for logging in, editing account, etc).
The gem also provides methods to mixin to your application’s User model which will be helpful.
To enable the library your Rails 2.1 (or greater) project, use the gem configuration method in “config/environment.rb”
Rails::Initializer.run do |config| config.gem 'moorage-thrivesmart_accounts_gem', :lib => 'thrivesmart_accounts_gem', :source => 'http://gems.github.com' end
The :lib is important, because rails gets confused when the name of the gem is different from the library.
And of course, run
rake gems:install
To get them installed on your system.
Optionally, to unpack it into your application, just run:
rake gems:unpack GEM=moorage-thrivesmart_accounts_gem
Copyright © 2009 ThriveSmart, LLC, released under the MIT license