June 23, 2006

Posted by John

Tagged plugins

Older: Running Background Jobs in Rails

Newer: RailsConf: Dave Thomas Keynote

CSS Forms Plugin

ADvanced Development Software just released a CSS forms plugin for Rails. I go back and forth between using CSS forms mainly because browser support sometimes is a pain. The plugin looks pretty cool though. An example they provide is …

<% css_form_for :customer, @customer, :url => { :action => "create" } do |f| %>
 <% fieldset_tag 'General data' do %> 
  <%= f.text_field :code, :class=>'half-size' %>
  <%= f.text_field :name, :class=>'double-size' %>     
  <%= f.select(:bank_id, Bank.to_select, 
               :include_blank => true,             
               :class=>'normal_size' ) %>
  <%= f.check_box :option1  %>
  <%= f.hidden_field :field1  %>
  <% end %>
  <%=submit_tag %>
<% end %> 

Definitely worth checking out.


Thoughts? Do Tell...

textile enabled, preview above, please be nice
use <pre><code class="ruby"></code></pre> for code blocks


Authored by John Nunemaker (Noo-neh-maker), a programmer who has fallen deeply in love with Ruby. Learn More.


Release your software more often with fewer problems.
Flip your features.