Active Admin 0.3.0: What’s new?
Last night, we released Active Admin 0.3.0. Thanks to all 35 developers who worked hard and put together the 325 commits that make up the release. So what's new?
Internationalization
Active Admin now supports 10 languages:
- English
- Danish
- Spanish
- French
- Italian
- Polish
- Portuguese
- Russian
- Chinese
If your language of choice isn't listed, it's easy to add it. Simply fork the project (create a new feature branch for the new language) and add a language yml file to "lib/active_admin/locales". Send us a pull request and we'll make sure to merge it in.
Customizable CSV
On resource index pages, Active Admin provides a downloadable CSV file. In 0.2.2, the CSV file was populated with all the attributes of your resource. Now in 0.3.0, you can customize the fields creating stellar reports for your customers with very little effort.
For example, to customize the CSV output for a product, you could:
ActiveAdmin.register Product do csv do column :id column :name column("Category"){|product| product.category.name } column("Purchased Count"){|product| Invoice.purchase_count_for(product) } end end
New Datepicker Styles

Our design team (Matt Vague & Gideon Baldridge) worked hard this version, updating styles and visual CSS bugs across the app. One nice update is the datepickers.
For usability purposes, the new datepickers sport an icon right in the html input. This helps differentiate fields that will have a calendar popup from fields that are for user input.
To use the field, simply add ":as => :datepicker" to any form input in your app.
Blank Slates
In 0.2.2, when a user visited an index page for a resource whose collection was empty, the user would see an empty page. Now, the user gets a nice message with a link to create a new one (assuming the new action is implemented).
Here's an example of the default blank slate for a Post resource:

Menu Item Updates
Resource's menu items sport some new features also. You can now show and hide menu items at runtime using the :if option and set the order of menu items using the :priority option.
For all the available options on menu items, take a look at the documentation: Customize the Menu
Collection & Member Actions Render within Layout
It's easier than ever to make completely custom pages in Active Admin. Custom member or collection actions can now render within the standard Active Admin layout. You can implement your own views in the views folder and they will "just work". You can even use the ".arb" file extension and get access to the beautiful Arbre syntax provided from Active Admin.
For complete details on rendering custom actions in Active Admin, check out the documentation: Custom Controller Actions
Rails 3.1 Support
Active Admin now supports Rails 3.1.0.rc6 and we'll update as soon as 3.1.0 is released to ensure compatibility. There was a lot of work put in to use the new asset pipeline, which makes it far simpler for Active Admin to keep it's assets up to date in your application. I'll probably write a whole post about this topic, so I won't bore you with the details here.
A ton more...
This is by no means an exhaustive list of all the new or fixed stuff in Active Admin. If you want to see all the details, take a look at the changelog or checkout all the commits since 0.2.2.
New Documentation Site
In tandem with the Active Admin 0.3.0 release, we've launched a new documentation section at activeadmin.info. It's still a work in progress, but it has a whole new structure that allows it to grow to meet the documentation needs of the project.
So, what's next?
Although this is a great release for Active Admin, there's lots more to do! First and foremost there's still some important bugs to deal with including a memory issue in development. Along with these stability updates, a whole bunch more documentation is needed. So if you're into that type of thing, we could use your help!
In terms of features, we're currently triaging the issues at which point I'd like to post a roadmap for the next few months. This way, we can have a public picture of where the project is heading (instead of it just being in my head).
The most commented feature request is definitely support for multiple ORMs, not just Active Record. I hope to put together a plan over the next week to start development this feature.
Thanks again to everyone who has contributed to Active Admin. We're well on our way to creating a great little community of passionate Rails developers.




This week 