Rails3: My conventions

Donnerstag, 30. Juni 2011, 09:02 Uhr | roberto@vasquez-angel.de |

Home site / Root path

  1. The root path routes to the index action of the home controller.

Backend

  1. The default backend is named “admin”
  2. The admin area gets a separte layout in /app/views/layouts/admin.html.erb
  3. Admin controllers extend a controller namend “AdminController”
  4. The admin controller sets the layout