Saturday 23 April 2011

Singular Plural In Rails

Keep Following things in mind : -
1) The database table is plural.
2) The model is singular, and associations are pluralization sensitive
3) resource-based controllers should be plural (which means the directory for the views and the helper is also plural).
4) The route name and the urls it generates/recognizes are plural.

No comments:

Post a Comment