at.
at.

Reputation: 52510

How to generate Devise views in Rails 4

Devise's documentation says to enter the following to generate the views:

rails generate devise:views

However, when I enter that, rails gives me usage instructions:

new-host-6:test4 scott$ rails generate devise:views
Usage:
  rails new APP_PATH [options]

Options:
  -r, [--ruby=PATH]              # Path to the Ruby binary of your choice
  etc

Upvotes: 1

Views: 328

Answers (1)

at.
at.

Reputation: 52510

The issue was that I was using Ruby 1.9.3 with a Rails 3.2 gemset in the Rails 4 project directory. Everything works fine after I did a rvm use 2.0.0@rails4

Upvotes: 2

Related Questions