2👍
✅
I found a gem called simple_form that is similar to formtastic. It allows you to to define forms like this:
<%= simple_form_for @user do |f| %>
<%= f.input :username %>
<%= f.input :password %>
<%= f.button :submit %>
<% end %>
I’ve used it for a few projects, and it’s worked out great. It also has integration with twitter bootstrap, if you are using that library.
2👍
Formtastic implements the Django pony magic you’re looking for, and most variants thereof that might actually be useful. In my opinion, most end-user apps don’t find “auto forms” and scaffolds to be very useful (since they so often need to be customized in detail), but Formtastic may output enough semantic HTML for you to style in a way that works for your users.
Rails also allows you to write your own custom form builders; you can also extend the ones Formtastic provide.
- [Django]-Trying to understand Django source code and cause of missing argument TypeError
- [Django]-Django Admin Look strange
- [Django]-Django URLs – trailing slash gets added to variable value
- [Django]-Best practice to serve static files in Django
- [Django]-Suddenly I'm getting DJANGO_SETTINGS_MODULE is not defined when using runserver
Source:stackexchange.com