Permalink
Browse files

README update for --controller option form generator

  • Loading branch information...
1 parent 2e3714c commit 3f58f3a52cd4495411d7e4b2b54a18b5a743a79d @justinfrench committed Dec 2, 2009
Showing with 18 additions and 1 deletion.
  1. +18 −1 README.textile
View
@@ -446,7 +446,22 @@ $ ./script/generate form Post --partial
create app/views/posts/_form.html.erb
</pre>
-To generate *HAML* markup, just add the @--haml@ as argument: @./script/generate form Post --haml@
+To generate *HAML* markup, just add the @--haml@ as argument:
+
+<pre>
+$ ./script/generate form Post --haml
+ exists app/views/admin/posts
+ create app/views/admin/posts/_form.html.haml
+</pre>
+
+To specify the controller in a namespace (eg admin/posts instead of posts), use the --controller argument:
+
+<pre>
+$ ./script/generate form Post --partial --controller admin/posts
+ exists app/views/admin/posts
+ create app/views/admin/posts/_form.html.erb
+</pre>
+
h2. Custom Inputs
@@ -455,6 +470,8 @@ If you want to add your own input types to encapsulate your own logic or interfa
@Formtastic::SemanticFormHelper.builder = MyCustomBuilder@
+
+
h2. Status
Formtastic has been in active development for about a year. We've just recently jumped to an 0.9 version number, signaling that we consider this a 1.0 release candidate, and that the API won't change significantly for the 1.x series.

0 comments on commit 3f58f3a

Please sign in to comment.