nifty-generators
nifty-generators copied to clipboard
Formtastic Support
There should be a --formtastic
option one could pass in nifty_scaffold or nifty_authentication which would use the simplified formtastic methods to generate form fields.
I have implemented a solution in a fork that makes use of formtastic, use the --formtastic option. Currently this only works for nifty_scaffold. See: http://github.com/iceburging/nifty-generators
You may also want to alter the application.html.erb for the following two lines by specifying 'script/generate nifty_layout --formtastic'.
- HTML Tag
... instead of ...
<html>
- CSS Tags to Include Formtastic Stylesheets
<%= stylesheet_link_tag 'application', 'formtastic', 'formtastic_changes' , :cache => 'base' %>
...instead of...
<%= stylesheet_link_tag 'application' %>
Man, I really should learn how to do that myself. It doesn't seem all that hard.
Formtastic does not need this with html5:
xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"