You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I came across this problem when building this activeadmin addon aiming to customize default ActiveAdmin layout by using CaptureHelper methods.
I'm getting repeated form fields when inspecting or evaluating arbre components related to forms. I didn't had problems with anything else but forms. Seems related to Arbre but couldn't find the bug yet.
Take any ActiveAdmin resource that has a form declaration in its DSL and add a puts self.inspect before closing the block. You will get the form fields duplicated.
Example
I'll use the default admin_user Resource as an example:
Go to the edit or new route and you will get something like this:
The text was updated successfully, but these errors were encountered:
gbisheimer
changed the title
Duplicated form fields when inspecting model during debug
Arbre duplicates form fields when inspecting model during production/debug
Sep 20, 2016
Description
I came across this problem when building this activeadmin addon aiming to customize default ActiveAdmin layout by using CaptureHelper methods.
I'm getting repeated form fields when inspecting or evaluating arbre components related to forms. I didn't had problems with anything else but forms. Seems related to Arbre but couldn't find the bug yet.
Versions
activeadmin 1.0.0.pre4
rails 5.0.0.1.
ruby 2.3.0p0
Steps to reproduce
Take any ActiveAdmin resource that has a form declaration in its DSL and add a
puts self.inspect
before closing the block. You will get the form fields duplicated.Example
I'll use the default admin_user Resource as an example:
Go to the edit or new route and you will get something like this:
The text was updated successfully, but these errors were encountered: