formgen 0.3.0 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/README.rdoc
CHANGED
@@ -184,6 +184,15 @@ Based on Foo example above.
|
|
184
184
|
|
185
185
|
Make sure the generated helper is being loaded - restart your rails server.
|
186
186
|
|
187
|
+
* I want haml templates instead of erb:
|
188
|
+
|
189
|
+
Done - just include this gem https://github.com/indirect/haml-rails
|
190
|
+
|
191
|
+
== Gotchas
|
192
|
+
|
193
|
+
* Only does single level nesting at this point. For example, if the Bar or Baz class had accepts_nested_attributes_for :thing, it would not generate those partials and form elements. Yet. This is the only thing on my TODO list before I'd call it a solid 1.0.0.
|
194
|
+
* You need to use yield :head somewhere in your layout to take advantage of the jQuery that is loaded in a content_for :head to supply add and remove jQuery.
|
195
|
+
|
187
196
|
|
188
197
|
== Contributing to formgen
|
189
198
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.3.
|
1
|
+
0.3.1
|
data/formgen.gemspec
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
<% if options.helpers? -%>
|
1
|
+
<% if options.helpers? and !nested_classes_with_attributes.empty? -%>
|
2
2
|
<%%= form_for setup_<%= cls_underscore %>(@<%= cls.to_s.underscore %>)<%= @have_attachment_string %> do |f| %>
|
3
3
|
<% else -%>
|
4
4
|
<%%= form_for @<%= cls.to_s.underscore %><%= @have_attachment_string %> do |f| %>
|
@@ -1,4 +1,4 @@
|
|
1
|
-
<% if options.helpers? -%>
|
1
|
+
<% if options.helpers? and !nested_classes_with_attributes.empty? -%>
|
2
2
|
= form_for setup_<%= cls_underscore %>(@<%= cls.to_s.underscore %>)<%= @have_attachment_string %> do |f|
|
3
3
|
<% else -%>
|
4
4
|
= form_for @<%= cls.to_s.underscore %><%= @have_attachment_string %> do |f|
|
metadata
CHANGED