Module: PagesHelper

Defined in:
app/helpers/pages_helper.rb

Instance Method Summary collapse

Instance Method Details

#form_objectObject



5
6
7
# File 'app/helpers/pages_helper.rb', line 5

def form_object
  @parent_page ? [@parent_page, @page] : @page
end

#form_urlObject



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 to_html_options(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(options = {})
#    stylesheet_link_tag('uploadify/uploadify') <<
#    javascript_include_tag('uploadify/jquery.uploadify.v2.1.0.min') <<
#    javascript_include_tag('uploadify/swfobject') <<
  javascript_uploadify_s3_tag(options)
end