Module: TTN::Helpers::ActionView

Defined in:
lib/TTN/helpers/action_view/links.rb

Instance Method Summary collapse

Instance Method Details

#javascript(*args) ⇒ Object



14
15
16
# File 'lib/TTN/helpers/action_view/links.rb', line 14

def javascript(*args)
  content_for :javascripts, javascript_include_tag(*args)
end


5
6
7
8
# File 'lib/TTN/helpers/action_view/links.rb', line 5

def link_to_with_current(text, url, html = {})
  html[:class] = [html[:class],'current'].join(' ') if current_page?(url)
  link_to text, url, html
end

#stylesheet(*args) ⇒ Object



10
11
12
# File 'lib/TTN/helpers/action_view/links.rb', line 10

def stylesheet(*args)
  content_for :stylesheets, stylesheet_link_tag(*args)
end