Hello,
I apologize if this question has been raised before. Is it possible to
add check box next to a data field? Can this be done in the hobo
model? I noticed that there is a def input tag in the
rapid_forms.dryml, but I would I be able to use it if I want to show
one of the fields with a check box as an input box. And I would still
like to use the default New/Edit page generated by hobo.
<def tag="input" for="boolean" attrs="name">
<%= check_box_tag(name, '1', this, attributes) + hidden_field_tag
(name, '0') %>
</def>
******
class Product < ActiveRecord::Base
hobo_model # Don't put anything above this
fields do
product_name :string, :name => true
new :boolean -------------------> will this automatically
add a checkbox next the "new" field?
platform :string
feature :text
timestamps
end
******
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Hobo
Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/hobousers?hl=en
-~----------~----~----~----~------~----~------~--~---