Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
A form builder for ActionView.
Ruby
Tree: ff2c94974b

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
rails
test
.gitignore
LICENSE
README.rdoc
Rakefile
TODO
VERSION.yml
form-san.gemspec

README.rdoc

Form-San

Form-San is a lean extension for the Rails form builder.

<% form_for(@member, :builder => FormSan::FormBuilder) do |f| %>
  <% f.fieldset do %>
    <% f.fields do %>
      <%= f.error_messages %>

      <% f.field(:email, :type => :text, :class => 'medium') do %>
        <p class="hint">You’ll log in using your email address.</p>
      <% end %>
      <%= f.field(:password, :type => :password) %>

      <% f.fields_for(@member.artist) do |a| %>
        <% a.field(:name, :type => :text, :class => 'medium') do %>
          <p class="hint">Shown on the site.</p>
        <% end %>
      <% end %>
    <% end %>
  <% end %>

  <div class="submit">
    <%= f.submit 'Sign up' %>
    <%= link_to 'Cancel', root_path, :class => 'cancel' %>
  </div>
<% end %>
Something went wrong with that request. Please try again.