Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Options, options, options…

  • Loading branch information...
commit 111cf7a69f20fd1ac27bd8a76576e4bda1f82fed 1 parent 58fccc4
@alloy authored
Showing with 2 additions and 10 deletions.
  1. +2 −10 app/helpers/projects_helper.rb
View
12 app/helpers/projects_helper.rb
@@ -20,8 +20,6 @@ def remove_link_unless_new_record(fields)
# <% end %>
# </div>
# <% end -%>
-
-
def generate_html(form_builder, method, options = {})
options[:object] ||= form_builder.object.class.reflect_on_association(method).klass.new
options[:partial] ||= method.to_s.singularize
@@ -30,15 +28,9 @@ def generate_html(form_builder, method, options = {})
form_builder.fields_for(method, options[:object], :child_index => 'NEW_RECORD') do |f|
render(:partial => options[:partial], :locals => { options[:form_builder_local] => f })
end
-
end
-
def generate_template(form_builder, method, options = {})
- escape_javascript generate_html(form_builder, method, options = {})
+ escape_javascript generate_html(form_builder, method, options)
end
-
-
-
-end
-
+end
Please sign in to comment.
Something went wrong with that request. Please try again.