activeadmin


ActiveAdmin - has_many and arbitrary html with the newer (1.0.0) dsl


Due to dependency complications from today's Rails and Sprockets vulnerability updates, I had to update ActiveAdmin to HEAD today, and the upgrade has done a number on one of my more complicated forms. See here for a much-simplified example: http://pastebin.com/Gt19TtYW
This markup rendered fine in the last version we were using (ref 8299dee5bd0) - the arbitrary html in the innermost inputs blocks rendered and each item.input as expected. However, in the newest version, only the last method invoked in the block is respected (so only <p>More static html</p> renders for each item). Even if I remove those static html containers and leave only item.input calls, I only get markup for the last method call in the block. This leaves me with two questions:
Is there a new preferred way to include arbitrary html under the new DSL? I tried div as per https://github.com/activeadmin/activeadmin/blob/master/docs/5-forms.md but that just made things worse (the arbitrary html ended up floating orphaned above the has_many markup).
Is there some new trick for the syntax inside has_many to get all of my item.input and other markup to render, instead of just the last thing called?
yes please do open issue(s) on GitHub for this. Our intention was that you use Arbre inside the inputs, so "para some static html" rather than "<p> ... <p>".html_safe However, so far this works inside inputs but not has_many. Also a fix was just added to has_many for the missing input so pull the latest and see if that helps.

Related Links

rails mountable engine I used rails 4.2.8 and try to install active admin, It's give me error like this
Is it possible to render subscript and superscript in ActiveAdmin pages?
How to make a form row's label into a selection input for a different attribute in ActiveAdmin?
How to use Money filter in active admin?
Can a rubocop check be disabled on certain paths only?
Render plain form html from ActiveAdmin instead of full page
Customize ActiveAdmin Page based on Roles
NoMethodError error for search_methods activeadmin
rails concerns - superclass mismatch error with active_admin in gems list
How to filter by “is not” in active admin/ransack
Active Admin image upload with refile
AuthorizationAdapter in ActiveAdmin
ActiveAdmin and Rails Engine. How do you keep the path name the same?
Active admin defining scope for custom page
ActiveAdmin: Can I redirect the user to the index after they create/edit something?
Active admin and Pundit

Categories

HOME
mpdf
ontouchlistener
schema.org
windows-10
operating-system
magento-2.0
qooxdoo
openflow
bittorrent
javafx-8
ui-automation
hystrix
siesta
nsstring
global-variables
pygobject
exe
nose
coroutine
jest
coreldraw
gollum-wiki
websphere-portal
managed-c++
data-collection
msdeploy
math.js
iwebbrowser2
sparkle
windowsiot
nest
devtools
payeezy
bean-validation
db2-luw
textmate2
mars-simulator
sspi
jacoco-maven-plugin
roracle
android-5.0-lollipop
scala-breeze
gtk#
connect-direct
clrs
pecl
finder
oid
yargs
xmlbeans
nvda
bbc-micro
meld
unsigned
timestamping
fdt
swiffy
xcopy
place
supersocket.net
ampersand
ocmockito
android-audiomanager
nhibernate-criteria
string.format
inputbox
rpg
two.js
forceclose
cidr
radius-protocol
gpu-programming
principalcontext
ggts
codahale-metrics
arel
proc-open
quartz-core
dynamic-c
datacontracts
filelock
nosetests
rtd
ppc
powergui
inversion
watchpoint
gui-designer
code-camp
rootkit

Resources

Database Users
RDBMS discuss
Database Dev&Adm
javascript
java
csharp
php
android
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App