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

Active Admin: how to set filter label dynamically
How to add an HTML-class to an ActiveAdmin index table
How to use modules to split very long code in active admin?
Downloading all records of a paginated resource in ActiveAdmin
Can you use the Form() command in ActiveAdmin in the content of a custom page?
CollectionAction route being skipped, action treated as ID
Possible to “split” an ActiveAdmin resource between multiple menu items?
Rails: activeadmin, undefined method `per' for #<ActiveRecord::Relation:0x4d15ee0>
Active Admin create form in register_page
ActiveAdmin - how to customize edit action?
ActiveAdmin - Filter with default value
Make semantic_errors render the exact error-message
ActiveAdmin - Custom action with reusing the show form
make checkboxes for a has_many :through association using Formtastic
CopyCopter with ActiveAdmin gets loads of Timeout Errors.
Rails ActiveAdmin - after creating a post I wish to render an action

Categories

HOME
matrix
verification
yaml
opencv-python
scroll
windows-10
whmcs
tcp
lvm
azure-mobile-services
impala
sentry
gprs
firebase-dynamic-links
phpmqtt
hspi
swarm
fireloop
spring-amqp
pm2
smartgwt
supervisord
scala-ide
maven-plugin
cloudsim
coroutine
bsd
backtracking
substring
pyopencl
firemonkey-style
fusetools
tortoisemerge
data-collection
ipa
hdmi
iwebbrowser2
bonita
laravel-4.2
opnet
delayed-job
sca
restful-architecture
autoencoder
express-session
textmate2
cargo
uivisualeffectview
sbjson
uipickerview
classnotfoundexception
code-push
deployd
scala-breeze
cordova-ios
aurelia-fetch-client
winmerge
htmlspecialchars
mobile-angular-ui
predicates
swiperefreshlayout
thread-exceptions
nvda
callouts
verisign
univocity
enunciate
helm
css-paged-media
shell-extensions
fat32
jolie
hp-idol-ondemand
xml-signature
windows-rt
jquery-mobile-flipswitch
communicate
distributed-r
stripe.net
reference-counting
autonumber
spring-security-acl
tnt4j
form-for
flv
sly-scroller
spiral
cgrectmake
clearinterval
popup-blocker
sfinae
exponent
dropshadow
zend-server-ce
play2-mini
filelock
winsxs
channelfactory
reliability
facebook-fbml
source-code-protection
inversion
ning
icon-language
acceleration
community-server
bindable-linq
account-management

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App