Module: Sunrise::FileUpload::FormBuilder::ClassMethods

Defined in:
lib/sunrise/file_upload/form_builder.rb

Instance Method Summary collapse

Instance Method Details

#fileupload(method, options = {}) ⇒ Object

<%= form_for @post do |form| %>

...
<%= form.fileupload :picture %>

<% end %>



15
16
17
# File 'lib/sunrise/file_upload/form_builder.rb', line 15

def fileupload(method, options = {})
@template.fileupload_tag(@object_name, method, objectify_options(options))
end