{"action":"created","issue":{"url":"https://api.github.com/repos/nathanvda/cocoon/issues/334","labels_url":"https://api.github.com/repos/nathanvda/cocoon/issues/334/labels{/name}","comments_url":"https://api.github.com/repos/nathanvda/cocoon/issues/334/comments","events_url":"https://api.github.com/repos/nathanvda/cocoon/issues/334/events","html_url":"https://github.com/nathanvda/cocoon/issues/334","id":127098418,"number":334,"title":"`link_to_add_association` raises ArgumentError ","user":{"login":"TeTiRoss","id":9665395,"avatar_url":"https://avatars.githubusercontent.com/u/9665395?v=3","gravatar_id":"","url":"https://api.github.com/users/TeTiRoss","html_url":"https://github.com/TeTiRoss","followers_url":"https://api.github.com/users/TeTiRoss/followers","following_url":"https://api.github.com/users/TeTiRoss/following{/other_user}","gists_url":"https://api.github.com/users/TeTiRoss/gists{/gist_id}","starred_url":"https://api.github.com/users/TeTiRoss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TeTiRoss/subscriptions","organizations_url":"https://api.github.com/users/TeTiRoss/orgs","repos_url":"https://api.github.com/users/TeTiRoss/repos","events_url":"https://api.github.com/users/TeTiRoss/events{/privacy}","received_events_url":"https://api.github.com/users/TeTiRoss/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2016-01-17T14:35:47Z","updated_at":"2016-01-18T10:48:46Z","closed_at":null,"body":"I have issue when adding `link_to_add_association` to my form. When I do this I'm getting `wrong number of arguments (0 for 1)`. Problem is not in partial cause first time rendering is going ok and without `link_to_add_association` is also works fine\r\n\r\nThis is how my code looks like:\r\n```ruby\r\n<%= u.simple_fields_for :educations do |education| %>\r\n    <%= render 'education_fields', u: education %>\r\n    <%= link_to_add_association '+', u, :educations %>\r\n<% end %>\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/nathanvda/cocoon/issues/comments/172495548","html_url":"https://github.com/nathanvda/cocoon/issues/334#issuecomment-172495548","issue_url":"https://api.github.com/repos/nathanvda/cocoon/issues/334","id":172495548,"user":{"login":"nathanvda","id":34460,"avatar_url":"https://avatars.githubusercontent.com/u/34460?v=3","gravatar_id":"","url":"https://api.github.com/users/nathanvda","html_url":"https://github.com/nathanvda","followers_url":"https://api.github.com/users/nathanvda/followers","following_url":"https://api.github.com/users/nathanvda/following{/other_user}","gists_url":"https://api.github.com/users/nathanvda/gists{/gist_id}","starred_url":"https://api.github.com/users/nathanvda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nathanvda/subscriptions","organizations_url":"https://api.github.com/users/nathanvda/orgs","repos_url":"https://api.github.com/users/nathanvda/repos","events_url":"https://api.github.com/users/nathanvda/events{/privacy}","received_events_url":"https://api.github.com/users/nathanvda/received_events","type":"User","site_admin":false},"created_at":"2016-01-18T10:48:46Z","updated_at":"2016-01-18T10:48:46Z","body":"Ha, I see the error: you use a different form-parameter name, so you have to supply it explicitly:\r\n\r\n    link_to_add_association '+', u, :educations, form_name: 'u'\r\n\r\n(by default it is assumed to be 'f')."}}