undefined method `write_inheritable_attribute' for Rails::Generator::Base:Class (NoMethodError)

后端 未结 6 822
深忆病人
深忆病人 2020-12-15 22:52

I am working on rails, suddenly rails server stops working. It\'s working fine and I have used following command [platform windows 7]

gem install -v=2.3.5 ra         


        
6条回答
  •  轮回少年
    2020-12-15 23:26

    Running bundle exec rails s worked for me.

    My project was using Rails 3.x but when I ran rails -v I got 2.3.17 which is the version used by a project I worked on just before. Somehow installing this version must have be set as "default".

    Could someone explain this ?

提交回复
热议问题