there are ways to coerce it via css, for example you put the fields into a fieldset something like
<% form.inputs :class => 'inline_fields' do %>
<%= form.input :first_name, :label => 'First' %>
<%= form.input :middle_name, :label => 'Middle' %>
<%= form.input :last_name, :label => 'Last' %>
<% end %>
then the css
form.formtastic fieldset.inline_fields ol {
margin-left: 25%;
}
form.formtastic fieldset.inline_fields li {
float: left;
width: 100px;
margin-right: 1em;
}
On Mar 16, 2010, at 1:08 PM, Bernhard Leicher wrote:
> Hi,
> I would like to arrange some of my fields side by side, e.g. having
> postal code and city next to each other:
> street
> postal code | city
> country
> Does anybody have a good idea on how to achieve this in a convenient
> way?
> I tried to apply "display:inline" on several elements per CSS, but
> wasn't successful.
> Thanks for any ideas, Bernhard
> --
> You received this message because you are subscribed to the Formtastic Google Group.
> To post to this group, send email to formtastic@googlegroups.com
> To unsubscribe from this group, send email to formtastic+unsubscribe@googlegroups.com