Active Admin 0.3.0: What’s new?

Posted on August 25, 2011

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:

  1. ActiveAdmin.register Product do
  2. csv do
  3. column :id
  4. column :name
  5. column("Category"){|product| product.category.name }
  6. column("Purchased Count"){|product| Invoice.purchase_count_for(product) }
  7. end
  8. end

New Datepicker Styles

Active Admin Datepicker

Our design team (Matt VagueGideon 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:

AA-blank-slate-2

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.


10 Replies to "Active Admin 0.3.0: What's new?"

  • Philippe Creux
    August 25, 2011 (2:10 pm)
    Reply

    Very nice blog post! (well, the truth is: I just scanned the titles, list of languages and screenshots)

  • Mike G
    August 28, 2011 (8:19 pm)
    Reply

    Thank you for all your effort. This looks very promising as someone new to Rails.

  • hakagura
    September 9, 2011 (11:51 am)
    Reply

    how do I insert icons with method Icon?

  • Tim
    October 27, 2011 (7:49 am)
    Reply

    Excellent work.

    By the way, is it possible to give users a role and then filter what they see based on that role?

    How would you go about doing that? If it’s not possible now, is that a feature you would be interested in me trying to add?

    Thanks!

  • David Silva
    December 15, 2011 (5:33 am)
    Reply

    Hi,

    If we have a datetime field, the “:as => :datepicker” will not show hours and minutes, what do you suggest in cases like this?

    Thank you,
    David Silva

  • Greg Bell
    December 15, 2011 (11:53 am)
    Reply

    @David – There isn’t a solution for a datepicker with time out of the box, however the form is a regular old rails form (using formtastic) so you should be able to use any plugin or roll your own datetime picker.

    A quick google search brought up this project – http://trentrichardson.com/examples/timepicker. I’ve never used it, but it may work for your requirements.

  • Al
    September 10, 2012 (5:06 pm)
    Reply

    Hi David,

    Awesome work man! I”m a recent graduate and I’m looking for some experience. I found your gem on github and wondering if I could help out in anyway.

    A fellow coding nerd

  • Alexey
    February 23, 2017 (2:59 am)
    Reply

    Please! Restore activeadmin.info old documentation structure

  • akeem egbeyemi
    April 3, 2018 (6:00 pm)
    Reply

    interested in learning more about security. do you have any recommendations on how to secure the site since we will be collecting user data? what would you recommend the type of security software that will be compatible with active admin?

    Thanks,
    Akeem

  • unk
    April 19, 2018 (1:17 pm)
    Reply

    Hi,

    just saw your comment here https://grabcad.com/library/adam-s-hand-1

    I really need to open this .step file into solidworks but i can’t manage to… could you know why please?

    Also, does autocad is able to open .f3d files please?

    By any chance would you know if it exists a way to transfer autocad files to solidworks readable files please?

    Sorry to bother you,
    an unknown guy.


Leave a Reply to akeem egbeyemi Cancel reply

Some html is OK