Trouble getting model form for has_many in custom partial.

29 views
Skip to first unread message

Mikael Bartlett

unread,
Jun 10, 2013, 4:18:27 AM6/10/13
to rails...@googlegroups.com
I'm making a custom partial for a resource to enable only adding and removing.
I've successfully made so it lists all the resources and I can destroy them from the list.
But I can't get the "Add a new .." button to work.

I'm guessing that I'm missing an attribute or somthing for getting the remoteForm widget recognizing my button link.

I've created the button with: <%= link_to wording_for(:link, :new, config.abstract_model), '#', :data => { :link => new_path(:model_name => :node_access) }, :class => "create btn btn-info", :style => 'margin-left:10px' %>

Can anyone point me in the right direction?

Many thanks,
Mikael
Reply all
Reply to author
Forward
0 new messages