Sha256: e97b7c4fdf85af6d4839dd288a3046a71972688796f0524f62713868d109605f

Contents?: true

Size: 428 Bytes

Versions: 12

Compression:

Stored size: 428 Bytes

Contents

module ApplicationHelper
	# def link_to_add_fields(name, f, association)
 #    new_object = f.object.send(association).klass.new
 #    id = new_object.object_id
 #    fields = f.fields_for(association, new_object, child_index: id) do |builder|
 #      render(association.to_s.singularize + "_fields", f: builder)
 #    end
 #    link_to(name, '#', class: "add_fields", data: {id: id, fields: fields.gsub("\n", "")})
 #  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
crimagify-0.0.4.3 test/dummy/app/helpers/application_helper.rb
crimagify-0.0.4.2 test/dummy/app/helpers/application_helper.rb
crimagify-0.0.4.1 test/dummy/app/helpers/application_helper.rb
crimagify-0.0.4.0 test/dummy/app/helpers/application_helper.rb
crimagify-0.0.3.9 test/dummy/app/helpers/application_helper.rb
crimagify-0.0.3.8 test/dummy/app/helpers/application_helper.rb
crimagify-0.0.3.6 test/dummy/app/helpers/application_helper.rb
crimagify-0.0.3.5 test/dummy/app/helpers/application_helper.rb
crimagify-0.0.3.4 test/dummy/app/helpers/application_helper.rb
crimagify-0.0.3.3 test/dummy/app/helpers/application_helper.rb
crimagify-0.0.3.2 test/dummy/app/helpers/application_helper.rb
crimagify-0.0.3.1 test/dummy/app/helpers/application_helper.rb