I''m encountering a problem when trying to go through the Rails4Days
tutorial: http://www.rails4days.pwp.blueyonder.co.uk/Rails4Days.pdf. As
the guide suggests I have downloaded the version of rails that is being
used in the tutorial with gem and have specified the versions in
/config/environment.rb:
# Include your application configuration below
# Require Rails libraries.
require ''rubygems''
gem ''activesupport'', ''= 1.0.4''
gem ''activerecord'', ''= 1.10.1''
gem ''actionpack'', ''= 1.8.1''
gem ''actionmailer'', ''= 0.9.1''
gem ''actionwebservice'', ''= 0.7.1''
gem ''rails'', ''= 0.12.1''
When I try to execute the following command:
$ script/generate model category exists app/models/ exists test/unit/
exists test/fixtures/ create app/models/category.rb create
test/unit/category_test.rb create test/fixtures/categories.yml
I receive this error:
/usr/local/lib/site_ruby/1.8/rubygems.rb:246:in `activate'':
can''t
activate activesupport (= 1.0.4), already activated activesupport-1.4.2]
(Gem::Exception)
from /usr/local/lib/site_ruby/1.8/rubygems.rb:76:in
`active_gem_with_options''
from /usr/local/lib/site_ruby/1.8/rubygems.rb:50:in `gem''
from ./script/../config/../config/environment.rb:64
from
/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in `require''
from
/usr/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/commands/generate.rb:1
from
/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in `require''
from script/generate:3
I''ve tried searching google without success. Any suggestions would be
very much appreciated as I would love to complete this tutorial.
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---