module Microframe::Helpers

Public Instance Methods

form_for(target, link=nil) { |form_helper| ... } click to toggle source
# File lib/microframe/controller/helpers.rb, line 17
def form_for(target, link=nil, &block)
  yield(FormHelper.new(target, link))
end
image_tag(image, ext = "png") click to toggle source
# File lib/microframe/controller/helpers.rb, line 21
def image_tag(image, ext = "png")
  File.join(APP_PATH, "app", "assets", "images", "#{image}.#{ext}")
end
javascript_tag(js) click to toggle source
# File lib/microframe/controller/helpers.rb, line 25
def javascript_tag(js)
  File.join(APP_PATH, "app", "assets", "javascripts", "#{js}.js")
end
stylesheet_tag(style, ext = "css") click to toggle source
# File lib/microframe/controller/helpers.rb, line 29
def stylesheet_tag(style, ext = "css")
  File.join(APP_PATH, "app", "assets", "stylesheets", "#{style}.#{ext}")
end