-2

I'm new to Rails and programming in general. I'm a bit confused and wondering about common practices when building a rails application from scratch.

Is there a proper order of how and when things should be generated? Obviously rails generate new should be the first, but should Devise or any other authentication system be the next in line, or should rails generate scaffold **** be done before, etc...?

tshepang
  • 12,111
  • 21
  • 91
  • 136
Colper
  • 115
  • 2
  • 8

2 Answers2

0

Generate the app, then run any rails engines such as devise, then scaffold (in your example). Also remember to run migrations as you go.

Alex Lynham
  • 1,318
  • 2
  • 11
  • 29
0

Rails application building is done when rails generate new is executed. After that you can generate all what you need in any order. It doesn't make sence to talk about any common practices in this case.

chumakoff
  • 6,807
  • 2
  • 23
  • 45