activeadmin


How to use Money filter in active admin?


I am using money-rails gem for monetary values. I wanna have filter on this field. The values stored in DB are saved in cents, but filter is to be applied on actual values only.
You can use a custom runsacker for that.
# in your model
ransacker :price_money, formatter: proc { |v| v.to_i * 100 } do |parent|
parent.table[:name]
end
# in your admin file
filter :price_money

Related Links

ActiveAdmin not decorating show view
activeadmin custom filter that contains 2 words on the same attribute
why is activeadmin confusing normal user with admin user?
ActiveAdmin - how to find the id of the default scope?
Changing activeadmin use of model name to another method in forms and show pages
ActiveAdmin Customized Filter Using Params and Scopes
How to remove default links on navigation bar and change their order
Rails 4 cocoon gem not working with js
Numbering items in an ActiveAdmin Report
cocoon link_to_add_association adds empty association fields rails 4 erb
How would I split a form into multiple pages?
Activeadmin custom filter and scope for custom index records Rails 4
ActiveAdmin 'show' layout not same as edit / new
ActiveAdmin - has_many and arbitrary html with the newer (1.0.0) dsl
Rails 4 activeadmin - undefined local variable or method `view_factory' for :Arbre::Context
undefined method `query_parameters' in Active Admin show/panel/table_for

Categories

HOME
ionic2
opencart
vagrant
angular-ui-grid
long-integer
haproxy
theano
braintree
ant
visual-studio-2010
bing-search
cypher
visualforce
repair
angular-meteor
gprs
angular2-template
gtk
fireloop
rangy
trace32
bnf
vmware-workstation
cloudsim
codefluent
parceler
pfobject
libgit2
spring-ldap
fido-u2f
maven-surefire-plugin
altium-designer
raima
pubxml
tracing
openbravo
android-service
tortoisehg
bonita
javax.persistence
basic-authentication
memory-fences
pdfnet
right-click
slideshow
vb.net-to-c#
cloudera-sentry
notesview
web-inspector
virtual-memory
morphline
permission-denied
daz3d
liteide
icecast
scala-breeze
sigsegv
android-webservice
android-mediarecorder
annotatorjs
petsc
jsf-2.3
raw-sockets
maven-release-plugin
noclassdeffounderror
jeditable
distributed-cache
xcopy
i2b2
webgrind
m4
deeplink
ora-04091
mixins
blockquote
sequence-sql
tree-structure
subfolder
subview
fiware-bosun
microsoft-expression-web
utf8-decode
iplimage
communicate
code-complexity
hyperloglog
rails-api
preorder
radius-protocol
accountmanager
grails-2.3
postgres-xc
node.js-stream
dynamic-rdlc-generation
rikulo
proc-open
xmlwriter
dojo-1.9
ip-geolocation
towers-of-hanoi
onconfigurationchanged
struts2-json-plugin
server-name
expression-web
servercontrol
vows
servlet-container
pyjamas
cassini
j2mepolish
self-tracking-entities
html-components
rawcontacts
jquery-effects
downcasting
chronic
community-server
bindable-linq
error-detection

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