Class: Admin::ImageBuilder
- Inherits:
-
ActionView::Helpers::FormBuilder
- Object
- ActionView::Helpers::FormBuilder
- Admin::ImageBuilder
show all
- Defined in:
- lib/ecrire/app/forms/admin/image_builder.rb
Instance Method Summary
collapse
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method, *args, &block) ⇒ Object
20
21
22
|
# File 'lib/ecrire/app/forms/admin/image_builder.rb', line 20
def method_missing(method, *args, &block)
@template.send(method, *args, &block)
end
|
Instance Method Details
#message ⇒ Object
4
5
6
7
8
9
10
|
# File 'lib/ecrire/app/forms/admin/image_builder.rb', line 4
def message
if object.
content_tag :p, "You can replace your header by either <strong>clicking</strong> or <strong>dropping</strong> a picture here.".html_safe
else
content_tag :p, "Upload a picture for your post' header by either <strong>clicking</strong> or <strong>dropping</strong> a picture here".html_safe
end
end
|