Satish / restful-authentication

Generates common user authentication code for Rails/Merb, with a full test/unit and rspec suite and optional Acts as State Machine support built-in.
http://weblog.techno-weenie.net
MIT License
82 stars 19 forks source link

Could not find gem 'rubyist-aasm (>= 0, runtime)' in any of the gem sources. #5

Closed zhengnantc closed 14 years ago

zhengnantc commented 14 years ago

Hi:

I am trying restful-authentication with aasm under Rails 3. But after after add "gem 'rubyist-aasm', :require => 'aasm'" to Gemfile, I can't get into rails console. Always saying:

rails console Could not find gem 'rubyist-aasm (>= 0, runtime)' in any of the gem sources. Try running bundle install. bundle install Fetching source index for http://rubygems.org/ Could not find gem 'rubyist-aasm (>= 0, runtime)' in any of the gem sources.

Without using rubyist-aasm, the console will say:

Loading development environment (Rails 3.0.1)

User NoMethodError: undefined method `acts_as_state_machine' for #Class:0x1033be0d0

Any clue for this problem?

Satish commented 14 years ago

You need to do this

sudo gem sources -a http://gems.github.com

zhengnantc commented 14 years ago

I did that, and I can see that rubyist-aasm (2.1.1) is installed from "gem list". I also added " gem 'rubyist-aasm', :require => 'aasm' " in my Gemfile.

However, the rails console still doesn't work.

The console keeps saying: undefined method `acts_as_state_machine' for #Class:0x1033c41d8

Did I miss anything?