Skip to content

Commit

Permalink
Rapid -- surpress the standard Rails id attribute on form fields (it'…
Browse files Browse the repository at this point in the history
…s invalid)
  • Loading branch information
tslocke committed Jul 4, 2008
1 parent 17187bd commit a639160
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions hobo/taglibs/rapid_forms.dryml
Original file line number Diff line number Diff line change
Expand Up @@ -131,15 +131,15 @@


<def tag="input" for="text" attrs="name">
<%= text_area_tag(name, this, attributes) %>
<%= text_area_tag(name, this, attributes.reverse_merge(:id => nil)) %>
</def>

<def tag="input" for="boolean" attrs="name">
<%= check_box_tag(name, '1', this, attributes) + hidden_field_tag(name, '0') %>
<%= check_box_tag(name, '1', this, attributes.reverse_merge(:id => nil)) + hidden_field_tag(name, '0') %>
</def>

<def tag="input" for="password" attrs="name">
<%= password_field_tag(name, this, attributes) %>
<%= password_field_tag(name, this, attributes.reverse_merge(:id => nil)) %>
</def>

<def tag="input" for="date" attrs="order">
Expand All @@ -153,19 +153,19 @@
</def>

<def tag="input" for="integer" attrs="name">
<%= text_field_tag(name, this, attributes) %>
<%= text_field_tag(name, this, attributes.reverse_merge(:id => nil)) %>
</def>

<def tag="input" for="float" attrs="name">
<%= text_field_tag(name, this, attributes) %>
<%= text_field_tag(name, this, attributes.reverse_merge(:id => nil)) %>
</def>

<def tag="input" for="string" attrs="name">
<%= text_field_tag(name, this, attributes) %>
<%= text_field_tag(name, this, attributes.reverse_merge(:id => nil)) %>
</def>

<def tag="input" for="big_integer" attrs="name">
<%= text_field_tag(name, this, attributes) %>
<%= text_field_tag(name, this, attributes.reverse_merge(:id => nil)) %>
</def>

<def tag="input" for="HoboFields::EnumString" attrs="labels,titleize">
Expand Down

0 comments on commit a639160

Please sign in to comment.