I am trying to create a form with formtastic inside the active_admin model. The problem is that I need a specific script tag and other raw HTML elements directly inside or around the form.
I do this with a normal form block:
form do |f| f.inputs :name => "User Details", :for => :user do |user_form| user_form.input :first_name, :required => true ...
How to insert a simple div tag directly between them? Or even a script tag?
I thought about using render :partial
, but I want to know if the above method is possible. Thanks!
source share