impress/app/helpers/outfits_helper.rb
2010-11-05 18:45:05 -04:00

18 lines
453 B
Ruby

module OutfitsHelper
def destination_tag(value)
hidden_field_tag 'destination', value, :id => nil
end
def origin_tag(value)
hidden_field_tag 'origin', value, :id => nil
end
def pet_attribute_select(name, collection, value=nil)
select_tag name,
options_from_collection_for_select(collection, :id, :human_name, value)
end
def pet_name_tag
text_field_tag 'name', nil, :spellcheck => false, :id => nil
end
end