M
M
madcore2016-04-22 15:49:13
Ruby on Rails
madcore, 2016-04-22 15:49:13

Rails divese gem do I need to create a model beforehand?

There is a command in the guide - rails generate devise MODEL
MODEL is generated with devise or in advance ?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
F
Fahrenhe17, 2016-04-22
@madcore

You don't need to create the model yourself. You need to use devise'a generator.
To better understand this, understand the classes in Ruby, and then look at what is inherited from what during generation.

A
Andrey Andreev, 2016-04-22
@b0nn1e

What's stopping you from trying?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question