plataformatec/simple_form — Issue #450: Inline forms
Author: Vizakenjack
Created: 2012-02-12 16:26:25+00:00
State: open

I have checked out bootstrap examples and found this inline code very useful for a tiny forms:
(example: http://twitter.github.com/bootstrap/base-css.html#forms)

Go

I could only do this:

= simple_form_for(resource, :as => resource_name, :url => confirmation_path(resource_name), :wrapper => false, :html => { :method => :post, :class => "form-inline" }) do |f|
= f.input_field :email, :placeholder => "your email" do
= f.input :email
= f.input_field :password, :placeholder => "your password" do
= f.input :password
|
= f.button :submit, "Send", :class => "btn-primary"

Is there another way to do it? I have tried to create custom wrapper, but I couldn't place a button there. It should be at same line too.