To Examples

Position Example

Directions

  1. Create a new Rails project named Position.
  2. Generate a controller named Position with a view named page1.
  3. Source code for Position/app/views/box_model/page1.html.erb.
  4. Source code for Position/app/assets/stylesheets/box_model.scss.
  5. Remove this line from Position/app/views/layouts/application.html.erb:
    <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
    
  6. View page1 with this URL:
    http://localhost:3000/box_model/page1