# Rails problem

**URL:** <https://www.ruby-forum.com/t/rails-problem/151711>\
**Category:** Rails\
**Created:** [October 24, 2008, 6:31pm UTC](https://www.ruby-forum.com/t/rails-problem/151711 "2008-10-24T18:31:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![giga](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/b9bd4f/32.png) [@giga](https://www.ruby-forum.com/u/giga)\
**Post date:** [October 24, 2008, 6:31pm UTC](https://www.ruby-forum.com/t/rails-problem/151711/1 "2008-10-24T18:31:03Z")

</div>

What wrong?

# gem install rails -s [http://gems.rubyonrails.org](http://gems.rubyonrails.org) -v 2.2.0

Successfully installed activesupport-2.2.0  
Successfully installed activerecord-2.2.0  
Successfully installed actionpack-2.2.0  
Successfully installed actionmailer-2.2.0  
Successfully installed activeresource-2.2.0  
Successfully installed rails-2.2.0  
6 gems installed  
Installing ri documentation for activesupport-2.2.0…  
Installing ri documentation for activerecord-2.2.0…  
Installing ri documentation for actionpack-2.2.0…  
Installing ri documentation for actionmailer-2.2.0…  
Installing ri documentation for activeresource-2.2.0…  
Installing RDoc documentation for activesupport-2.2.0…  
Installing RDoc documentation for activerecord-2.2.0…  
Installing RDoc documentation for actionpack-2.2.0…  
Installing RDoc documentation for actionmailer-2.2.0…  
Installing RDoc documentation for activeresource-2.2.0…

# rails

/usr/local/lib/ruby/gems/1.8/gems/rails-2.2.0/bin/…/lib/rails\_generator/options.rb:32:in  
`default_options': undefined method `write\_inheritable\_attribute’ for  
Rails::Generator::Base:Class (NoMethodError)  
from  
/usr/local/lib/ruby/gems/1.8/gems/rails-2.2.0/bin/…/lib/rails\_generator/base.rb:90  
from  
/usr/local/lib/ruby/site\_ruby/1.8/rubygems/custom\_require.rb:27:in  
`gem_original_require' from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require’  
from  
/usr/local/lib/ruby/gems/1.8/gems/rails-2.2.0/bin/…/lib/rails\_generator.rb:34  
from  
/usr/local/lib/ruby/site\_ruby/1.8/rubygems/custom\_require.rb:27:in  
`gem_original_require' from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require’  
from /usr/local/lib/ruby/gems/1.8/gems/rails-2.2.0/bin/rails:13  
from /usr/local/bin/rails:19:in `load’  
from /usr/local/bin/rails:19

---

<div class="post-metadata">

**Author:** ![giga](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/b9bd4f/32.png) [@giga](https://www.ruby-forum.com/u/giga)\
**Post date:** [October 24, 2008, 8:40pm UTC](https://www.ruby-forum.com/t/rails-problem/151711/2 "2008-10-24T20:40:38Z")

</div>

you need to call rails with a project name:

$ rails --help  
Usage: /opt/local/bin/rails /path/to/your/app [options]  
Options:  
-r, --ruby=path Path to the Ruby binary of your  
choice (otherwise scripts use env, dispatchers current path).  
Default: /opt/local/bin/ruby  
-d, --database=name Preconfigure for selected  
database (options: mysql/oracle/postgresql/sqlite2/sqlite3/frontbase/  
ibm\_db).  
Default: sqlite3  
-f, --freeze Freeze Rails in vendor/rails from  
the gems generating the skeleton  
Default: false  
Rails Info:  
-v, --version Show the Rails version number and  
quit.  
-h, --help Show this help message and quit.  
General Options:  
-p, --pretend Run but do not make any changes.  
–force Overwrite files that already  
exist.  
-s, --skip Skip files that already exist.  
-q, --quiet Suppress normal output.  
-t, --backtrace Debugging: show backtrace on  
errors.  
-c, --svn Modify files with subversion.  
(Note: svn must be in path)  
-g, --git Modify files with git. (Note: git  
must be in path)

Description:  
The ‘rails’ command creates a new Rails application with a default  
directory structure and configuration at the path you specify.

Example:  
rails ~/Code/Ruby/weblog

```
This generates a skeletal Rails installation in ~/Code/Ruby/

```

weblog.  
See the README in the newly created application to get going.  
$

---

<div class="post-metadata">

**Author:** ![giga](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/b9bd4f/32.png) [@giga](https://www.ruby-forum.com/u/giga)\
**Post date:** [October 24, 2008, 11:18pm UTC](https://www.ruby-forum.com/t/rails-problem/151711/3 "2008-10-24T23:18:23Z")

</div>

same problem:

$ rails test  
/usr/local/lib/ruby/gems/1.8/gems/rails-2.2.0/bin/…/lib/rails\_generator/options.rb:32:in  
`default_options': undefined method`write\_inheritable\_attribute’ for  
Rails::Generator::Base:Class (NoMethodError)  
from  
/usr/local/lib/ruby/gems/1.8/gems/rails-2.2.0/bin/…/lib/rails\_generator/base.rb:90  
from  
/usr/local/lib/ruby/site\_ruby/1.8/rubygems/custom\_require.rb:27:in  
`gem_original_require' from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in`require’  
from  
/usr/local/lib/ruby/gems/1.8/gems/rails-2.2.0/bin/…/lib/rails\_generator.rb:34  
from  
/usr/local/lib/ruby/site\_ruby/1.8/rubygems/custom\_require.rb:27:in  
`gem_original_require' from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in`require’  
from /usr/local/lib/ruby/gems/1.8/gems/rails-2.2.0/bin/rails:13  
from /usr/local/bin/rails:19:in `load’  
from /usr/local/bin/rails:19
