Sha256: 20b7b88b8c560b4414f513ad1a7b15e9c8e55de1878979b50c47c0230b5118e7
Contents?: true
Size: 636 Bytes
Versions: 7
Compression:
Stored size: 636 Bytes
Contents
# Methods added to this helper will be available to all templates in the application. module ApplicationHelper # helper to determine if its appropriate to show the store menu def store_menu? return true unless %w{thank_you}.include? @current_action false end # Renders all the extension partials that may have been specified in the extensions def render_extra_partials(f) @extension_partials.inject("") do |extras, partial| extras += render :partial => partial, :locals => {:f => f} end end def flag_image(code) "#{code.to_s.split("-").last.downcase}.png" end end
Version data entries
7 entries across 7 versions & 2 rubygems