Failed to create a new Rails Project

When I try to create a new rails project in RubyMine, I receive this error and fails to create the project:

/home/ewanchic/.rvm/rubies/ruby-1.9.2-p136/bin/ruby -e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift) /home/ewanchic/.rvm/gems/ruby-1.9.2-p136/bin/rails _3.0.3_ new /home/ewanchic/Projects/testing/blog2 --skip --database=sqlite3
/home/ewanchic/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/1.9.1/rubygems.rb:762:in `report_activate_error': Could not find RubyGem rails (= 3.0.3) (Gem::LoadError)
    from /home/ewanchic/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/1.9.1/rubygems.rb:219:in `activate'
    from /home/ewanchic/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/1.9.1/rubygems.rb:1065:in `gem'
    from /home/ewanchic/.rvm/gems/ruby-1.9.2-p136/bin/rails:18:in `<top (required)>'
    from -e:1:in `load'
    from -e:1:in `<main>'

Process finished with exit code 1


However, when I create the same project on CLI, using the command that RubyMine is giving, it works:

  rails _3.0.3_ new /home/ewanchic/Projects/testing/blog2 --skip --database=sqlite3

any ideas?

Eric

Sorry for the duplicate post. When I orginally posted, it said faiilure and erased my comments. I went back to look to see if it was listed anyway and it wasn't.

0
4 comments

Strange, looks like a bug.. I've filed an issue - http://youtrack.jetbrains.net/issue/RUBY-7741.

> dulplicated post
P.S: Ok, I've just deleted the previous version

0

Eric,

Is it still actual? Seems is related to problems with gempaths and environment configuration problems.

0

When I try to create a new project only the empty project directory is created. There is no RoR directory structure in the project.

The process generates the following message:


/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby -e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift) /Library/Ruby/Gems/1.8/gems/rails-3.0.3/bin/rails _3.0.3_ new /Users/bborun/RubymineProjects/squadding --skip --database=mysql
/Library/Ruby/Gems/1.8/gems/rails-3.0.3/bin/rails:8:in `require': no such file to load -- rails/cli (LoadError)
 from /Library/Ruby/Gems/1.8/gems/rails-3.0.3/bin/rails:8
 from -e:1:in `load'
 from -e:1

Process finished with exit code 1

0

Hi Basil,

I've reproduced the problem and filed an issue http://youtrack.jetbrains.net/issue/RUBY-7781

0

Please sign in to leave a comment.