Module: PagesHelper
- Defined in:
- app/helpers/pages_helper.rb
Instance Method Summary collapse
- #form_object ⇒ Object
- #form_url ⇒ Object
- #to_html_options(pages) ⇒ Object
-
#uploadify_s3(options = {}) ⇒ Object
Begin of uploadify_s3.
Instance Method Details
#form_object ⇒ Object
5 6 7 |
# File 'app/helpers/pages_helper.rb', line 5 def form_object @parent_page ? [@parent_page, @page] : @page end |
#form_url ⇒ Object
2 3 4 |
# File 'app/helpers/pages_helper.rb', line 2 def form_url @parent_page ? page_children_path(@parent_page) : page_path(@page) end |
#to_html_options(pages) ⇒ Object
9 10 11 |
# File 'app/helpers/pages_helper.rb', line 9 def (pages) pages.map{|p| [p.title, p.id]} end |
#uploadify_s3(options = {}) ⇒ Object
Begin of uploadify_s3
21 22 23 24 25 26 |
# File 'app/helpers/pages_helper.rb', line 21 def uploadify_s3( = {}) # stylesheet_link_tag('uploadify/uploadify') << # javascript_include_tag('uploadify/jquery.uploadify.v2.1.0.min') << # javascript_include_tag('uploadify/swfobject') << javascript_uploadify_s3_tag() end |