ruby on rails - ActiveAdmin set up for resource, but won't create new item through custom form -
i have activeadmin setup in rails application version 3.2 have blogpost model set fine can view index without issue.
but when create new blogpost like
activeadmin.register blogpost index column :title |post| link_to post.title, blog_post_path(post) end column :body column :created_at column :image_url default_actions end form |f| f.inputs "blog post" f.input :title f.input :body, as: :html_editor f.input :image_url end f.actions end end it nothing , doesn't create new post, nor throw error. refreshes page. i'm using default resources, blog_post_controller inherits applicationcontroller instead of inheritedresources.
what cause of issue, or more need configure activeadmin hit create route through post on blog_post_controller?
turns out validating field wasn't sending in post request, , subsequently failing silently.
Comments
Post a Comment