Getting error while starting server plz help

27 views
Skip to first unread message

Rishi Aggarwal

unread,
Jul 27, 2012, 6:59:39 AM7/27/12
to rubyonra...@googlegroups.com
c:/Ruby193/lib/ruby/gems/1.9.1/gems/rails-2.3.14/lib/rails_generator/options.rb:32:in
`default_options': undefi
ned method `write_inheritable_attribute' for
Rails::Generator::Base:Class (NoMethodError)
from
c:/Ruby193/lib/ruby/gems/1.9.1/gems/rails-2.3.14/lib/rails_generator/base.rb:90:in
`<class:Base>'
from
c:/Ruby193/lib/ruby/gems/1.9.1/gems/rails-2.3.14/lib/rails_generator/base.rb:85:in
`<module:Genera
tor>'
from
c:/Ruby193/lib/ruby/gems/1.9.1/gems/rails-2.3.14/lib/rails_generator/base.rb:48:in
`<module:Rails>
'
from
c:/Ruby193/lib/ruby/gems/1.9.1/gems/rails-2.3.14/lib/rails_generator/base.rb:6:in
`<top (required)
>'
from
c:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in
`require'
from
c:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in
`require'
from
c:/Ruby193/lib/ruby/gems/1.9.1/gems/rails-2.3.14/lib/rails_generator.rb:37:in
`<top (required)>'
from
c:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in
`require'
from
c:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in
`require'
from
c:/Ruby193/lib/ruby/gems/1.9.1/gems/rails-2.3.14/bin/rails:15:in `<top
(required)>'
from c:/Ruby193/bin/rails:23:in `load'
from c:/Ruby193/bin/rails:23:in `<main>'

--
Posted via http://www.ruby-forum.com/.

Gintautas Šimkus

unread,
Jul 27, 2012, 7:49:28 AM7/27/12
to rubyonra...@googlegroups.com
Has your server started without errors before? If so then, what have you changed (in the broadest sense: upgrade OS, ruby, rails version etc.?) since the last time it worked.

In case it hasn't worked at all, let us know how you installed your ruby/rails/gems.

2012/7/27 Rishi Aggarwal <li...@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 rubyonra...@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-ta...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.



Rishi Aggarwal

unread,
Jul 27, 2012, 8:23:59 AM7/27/12
to rubyonra...@googlegroups.com
Gintautas S. wrote in post #1070411:
> Has your server started without errors before? If so then, what have you
> changed (in the broadest sense: upgrade OS, ruby, rails version etc.?)
> since the last time it worked.
>
> In case it hasn't worked at all, let us know how you installed your
> ruby/rails/gems.
>
> 2012/7/27 Rishi Aggarwal <li...@ruby-forum.com>


I am new to Ruby/rails platform:

i have followed following steps on my Virtual machine

1) installed one click installer
then
2) gem install rails --remote
3) gem update --system

then installed devkit

--> ruby dk.rg init
--> ruby dk.rg review
--> ruby dk.rg install

------------------------

then i checked out code from SVN after after that i am trynig to run
server

--> rails server

Frederick Cheung

unread,
Jul 28, 2012, 11:09:58 AM7/28/12
to rubyonra...@googlegroups.com


On Friday, July 27, 2012 1:23:59 PM UTC+1, Ruby-Forum.com User wrote:
Gintautas S. wrote in post #1070411:

------------------------

then i checked out code from SVN  after after that i am trynig to run
server

--> rails server

It looks like you're running rails 2.x, and on rails 2.x you start the server with

ruby script/server

Definitely worth checking that you've installed the version of rails the app was designed to run against.
Fred 

Rishi Aggarwal

unread,
Jul 29, 2012, 12:50:16 PM7/29/12
to rubyonra...@googlegroups.com
I am sure that I am using rails 3. Can someone help me

Hassan Schroeder

unread,
Jul 29, 2012, 1:02:18 PM7/29/12
to rubyonra...@googlegroups.com
On Sun, Jul 29, 2012 at 9:50 AM, Rishi Aggarwal <li...@ruby-forum.com> wrote:
> I am sure that I am using rails 3.

Your original post:

c:/Ruby193/lib/ruby/gems/1.9.1/gems/rails-2.3.14/lib/rails_generator/options.rb:32:in
`default_options': undefined method `write_inheritable_attribute' for
Rails::Generator::Base:Class (NoMethodError)

What version of the Rails gem do you see there? :-)

--
Hassan Schroeder ------------------------ hassan.s...@gmail.com
http://about.me/hassanschroeder
twitter: @hassan

Rishi Aggarwal

unread,
Jul 29, 2012, 1:08:58 PM7/29/12
to rubyonra...@googlegroups.com
How can I confirm that kind let me know

Linus Pettersson

unread,
Jul 29, 2012, 1:11:25 PM7/29/12
to rubyonra...@googlegroups.com
rails -v
in console.
Reply all
Reply to author
Forward
0 new messages