rails device code example Example 1: rails install devise rails generate devise:install Example 2: rails generate devise model $ rails generate devise MODEL