Error launching Rails server: undefined method 'configure'

前端 未结 5 1669
情歌与酒
情歌与酒 2020-11-28 06:04

I\'m new to rails and working through Hartl\'s tutorial. Everything was fine until I tried to do the tutorial a second time and created another project trying to use the lat

5条回答
  •  感情败类
    2020-11-28 06:39

    First set Ruby version before Rails new

    I had the same problem and I tried the answer given and it had no impact. I even tried changing the name to get rid of the underscore, and it had no impact.

    The problem is that you did this:

    $ rails new app_name

    But your ruby version was probably 2.1.1 or something else. You want to do:

    $ rvm 2.0.0

    BEFORE you run the new app, and then when you set 2.0.0 in your Gemfile (as Hartl recommends) it falls into place.

    I don't know WHY this works, and I hope someone will shed light on it, but I can tell you that this worked better than the answer that is currently in the lead.

提交回复
热议问题