rails 3 formtastic align radio buttons horizontally

How do I get radio buttons to align horizontally? for example:

<%= f.input :rating, :as => :radio, :collection => [["1", 1], ["2", 2], ["3", 3]] %>

is displayed as,


[ ] 1

[ ] 2

[ ] 3

I want:

rating [ ] 1 [ ] 2 [ ] 3

Update: fixed by adding

.formtastic fieldset > ol >li.radio fieldset ol li {
  margin:0.1em 0.5em 0.5em 0;
  display: inline-block;

to active_admin.css.scss


From the formtastic wiki on css customization and here, it seems that css is the way to do it.

Need Your Help

PostgreSQL live and test database

sql database postgresql

I'm working with PostgreSQL now for a few months. Now before going live we usually used the live database for almost everything (creating new columns in the live database tables, executing update and

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.