Navigation Menu

Skip to content

Commit

Permalink
Changed formastic to formtastic in README
Browse files Browse the repository at this point in the history
  • Loading branch information
Rahul Trikha authored and justinfrench committed Dec 26, 2010
1 parent f2a9ff4 commit f7e2c87
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.textile
Expand Up @@ -563,23 +563,23 @@ h3. Generating a partial with @--partial@
You can also ask Formtastic to *generate a partial* with the @--partial@ option, placing it in the correct location inside your @app/views@ directory:

<pre>
$ rails generate formastic:form Post --partial
$ rails generate formtastic:form Post --partial
exists app/views/posts
create app/views/posts/_form.html.erb
</pre>

h3. Specifying HAML instead of ERB with @--haml@

<pre>
$ rails generate formastic:form Post --haml
$ rails generate formtastic:form Post --haml
exists app/views/admin/posts
create app/views/admin/posts/_form.html.haml
</pre>

h3. Specifying controller namespace with @--controller@

<pre>
$ rails generate formastic:form Post --partial --controller admin/posts
$ rails generate formtastic:form Post --partial --controller admin/posts
exists app/views/admin/posts
create app/views/admin/posts/_form.html.erb
</pre>
Expand Down

0 comments on commit f7e2c87

Please sign in to comment.