{"action":"opened","issue":{"number":645,"created_at":"2011-10-19T05:31:16Z","pull_request":{"diff_url":null,"patch_url":null,"html_url":null},"body":"Hi, \r\n\r\nI have two different issues. \r\n\r\n#1 i love the way active admin handles has_many relationships with a simple DSL like so:\r\n\r\n\r\nActiveAdmin.register Artist do\r\n  form do |f| \r\n    f.inputs do\r\n      f.input :name\r\n      f.input :description\r\n    end \r\n\r\n    f.inputs \"ArtistLinks\" do\r\n      f.has_many :artist_links do |j| \r\n        j.inputs :title, :url\r\n      end \r\n    end \r\n\r\n    f.buttons\r\n  end \r\nend\r\n\r\nThe ability to add more links at the bottom of the form is great. \r\n\r\nHowever,I have been using a wyiswyg which i can't seem to get working in this format. I've been using/adding it with a partial like so:\r\n\r\n\r\nActiveAdmin.register NewsItem do\r\n  index do\r\n    column :title              \r\n    column :created_at\r\n    default_actions            \r\n  end\r\n  form :partial => \"/news_items/form\"\r\nend\r\n\r\n#/app/views/news_item/_form.html.erb\r\n<%= javascript_include_tag \"/javascripts/ckeditor/ckeditor.js\" %>\r\n<%= semantic_form_for [:admin, @news_item], :multipart => true do |f| %>\r\n  <%= f.inputs :title, :photo, :excerpt %>\r\n  <%= cktext_area_tag(\"news_item[content]\", @news_item.content) %>\r\n  <%= f.submit %>              \r\n<% end  %>\r\n\r\nHowever, \r\nin my partial, i can't seem to be able to make the has_many relationship nicely like so:\r\n    f.inputs \"ArtistLinks\" do\r\n      f.has_many :artist_links do |j| \r\n        j.inputs :title, :url\r\n      end \r\n    end \r\n\r\nCould you either explain to me how to get my wysiwyg which uses a form helper cktext_area_tag into my admin resource or explain to me how to get that nice has_many into my view partial?\r\n\r\nThanks a bunch! \r\n","comments":0,"title":"has_many and my wysiwyg","updated_at":"2011-10-19T05:31:16Z","url":"https://api.github.com/repos/gregbell/active_admin/issues/645","id":1990778,"assignee":null,"milestone":null,"closed_at":null,"user":{"avatar_url":"https://secure.gravatar.com/avatar/a90420c3c198a953a0b16ecfbb5e4941?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"a90420c3c198a953a0b16ecfbb5e4941","url":"https://api.github.com/users/jdkealy","id":386993,"login":"jdkealy"},"html_url":"https://github.com/gregbell/active_admin/issues/645","labels":[],"state":"open"},"legacy":{"number":645,"action":"opened","issue":1990778}}