./akelos website_name
./script/generate type name
where “type” is controller or model and “name” is your choice. You can also try
./script/generate scaffold
for information on creating scaffolds
Plural, with underscores instead of spaces between words, like steering_wheels
Akelos handles creation date/time and update date/time out of the box, so there is no need to code it yourself. Handling dates and searching through ranges might be tricky, if you use the Akelos conventions this comes for free.
By convention if you add a column named “created_at” or “updated_at” it will handle those fields for you automatically and if you name a column in a migration like “posted_at” it will set the field type and length for you, in this case, datetime. If you use “created_on” it will use just “date”.
Singular, first letter Capitalized, CamelCase for models like SteeringWheel
Validation of data is here.
Model files have information in them which appears like belongs_to and has_many and reflects automatic connections made by Akelos, using fields like author_id in a story table
Plurality matters. Be very careful – Akelos does stuff with making this singular and plural again, so make sure you are including the appropriate number of s
Convention is to use the plural form of the model name when applicable, e.g. stories controller, authors controller
How things look - Akelos in html ⇒ tpl
<%= link_to product.name, :action => 'show', :id => product.id %>