cheat sheets.

$ cheat rails_conventions
Naming Convention Summary

Model Naming Convention
Table: orders

Class: Order

File: /app/models/order.rb

Primary Key: id

Foreign Key: customer_id

Link Tables: items_orders <-- note that these are in _alphabetic_ order, if not
you will have to specify your association with :through => :orders_items

Controller Naming Convention
Class: OrdersController

File: /app/controllers/orders_controller.rb
Layout: /app/layouts/orders.html.erb

View Naming Convention
Helper: /app/helpers/orders_helper.rb

Helper Module: OrdersHelper

Views: /app/views/orders/… (list.html.erb for example)

Tests Naming Convention
Unit: /test/unit/order_test.rb

Functional: /test/functional/orders_controller_test.rb

Fixtures: /test/fixtures/orders.yml

Shamelessly stolen from: itsignals.cascadia.com.au/?p=7 (more info there)
Version 3, updated 898 days ago.
. o 0 ( | previous | history | revert to | current | diff )
( add new | see all )