June 23, 2006
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.
0 Comments
Thoughts? Do Tell...