SleepyDragon / dreamforge

Community system for sleepy dragon
5 stars 0 forks source link

Convert Forms to Formtastic #9

Open moonglum opened 12 years ago

moonglum commented 12 years ago

This will make the code more readable. Also, using a form partial, it can be easily re-generated when something changes in the model.

moonglum commented 12 years ago

From our old guidelines:

To create forms, we use Formtastic. So create your model including migrations and then run rails g formtastic:form MODELNAME --haml --partial, so the generated partial file will be written in haml Syntax. For more information on the Syntax, go to the github page. If you change your model later on, just run the command again and only the partial for the form will be updated.