BikeBikeBike/app/views/layouts/fields/_field_image_field.html.haml

7 lines
297 B
Plaintext
Raw Normal View History

= image_tag (@value || 'http://placehold.it/300x300&text=Click%20to%20upload%20an%20Image')
- if @form
-# = @form.hidden_field (@name.to_s + '_cache')
= @form.file_field @name, {:no_wrapper => true}
- else
= file_field_tag @name, {:no_wrapper => true}
= hidden_field_tag (@name.to_s + '_cache')