A form builder for ActionView.
Ruby
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
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 %>