making new project problem
Hi,
i got problem with a new project wizard, when i'm traying to Create New Project (Rails project) i got this in Run pannel:
/usr/local/bin/ruby -e STDOUT.sync=true;STDERR.sync=true;load($0=ARGV.shift) /usr/lib/ruby/gems/1.8/gems/rails-2.3.3/bin/rails _2.3.3_ /home/mejdej/RubymineProjects/untitled1 --skip --database=sqlite3
/usr/lib/ruby/gems/1.8/gems/rails-2.3.3/bin/../lib/rails_generator/options.rb:32:in `default_options': undefined method `write_inheritable_attribute' for Rails::Generator::Base:Class (NoMethodError)
from /usr/lib/ruby/gems/1.8/gems/rails-2.3.3/bin/../lib/rails_generator/base.rb:90
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
from /usr/lib/ruby/gems/1.8/gems/rails-2.3.3/bin/../lib/rails_generator.rb:34
from /usr/lib/ruby/gems/1.8/gems/rails-2.3.3/bin/rails:14:in `require'
from /usr/lib/ruby/gems/1.8/gems/rails-2.3.3/bin/rails:14
from -e:1:in `load'
from -e:1
Process finished with exit code 1
Some informations:
mejdej /Pulpit: gem env
RubyGems Environment:
- RUBYGEMS VERSION: 1.3.5
- RUBY VERSION: 1.8.7 (2008-08-11 patchlevel 72) [i486-linux]
- INSTALLATION DIRECTORY: /usr/lib/ruby/gems/1.8
- RUBY EXECUTABLE: /usr/bin/ruby1.8
- EXECUTABLE DIRECTORY: /usr/bin
- RUBYGEMS PLATFORMS:
- ruby
- x86-linux
- GEM PATHS:
- /usr/lib/ruby/gems/1.8
- /home/mejdej/.gem/ruby/1.8
- GEM CONFIGURATION:
- :update_sources => true
- :verbose => true
- :benchmark => false
- :backtrace => false
- :bulk_threshold => 1000
- REMOTE SOURCES:
- http://gems.rubyforge.org/
mejdej /Pulpit:gem list
*** LOCAL GEMS ***
actionmailer (2.3.3)
actionpack (2.3.3)
activerecord (2.3.3)
activeresource (2.3.3)
activesupport (2.3.3)
cgi_multipart_eof_fix (2.5.0)
daemons (1.0.10)
fastthread (1.0.7)
gem_plugin (0.2.3)
mongrel (1.1.5)
rack (1.0.0)
rails (2.3.3)
rake (0.8.7)
sqlite3-ruby (1.2.5)
I'm running on Ubuntu 9.04 32bit.I installed ruby & rubygems from repositories, then updated rubygems using rubygems-update.
I just started my adventure with Rails and I don't know what's going on, so any help will be appreciated
请先登录再写评论。
Hi,
I suppose it is Rails bug. Please try to create rails application from console:
And than check rails version in untitled1/config/environment.rb
I get this :
As far as I understand you are able to create project from console, but not from RubyMine. I've filed an issue http://www.jetbrains.net/jira/browse/RUBY-4589 and I'll investigate the problem.
As a workaround you may create stub for rails application from console and the open in with RubyMine: File | Open Directory...
Thanks
Message was edited by: Roman.Chernyatchik
Today I tried to do this on fresh installed Ubuntu 9.04. I installed ruby-full, build-essential, sqlite3, libsqlite3-ruby1.8 from repo, then rubygems from tgz (version 1.3.5). I made symlinks and installed rails using gem.
But problem with making new project in RubyMine remains.
As you said, from console i can make a project (rails proj --database=sqlite3 works), not in RubyMine, but everything besides that works, so.. come back to learning Thanks for help
regards,
Marcin