module Showbuilder
Public Instance Methods
show_alerts()
click to toggle source
# File lib/showbuilder.rb, line 39 def show_alerts self.html_contents do |contents| self.flash.each do |name, message| contents << self.contents_tag(:div, :class => 'alert-message error') do |contents| contents << self.content_tag(:a, "x", :href => '#', :class => 'close') contents << self.content_tag(:p, message) end end end end
show_current_itext_base()
click to toggle source
# File lib/showbuilder.rb, line 50 def show_current_itext_base self.controller_name.to_s.singularize end
show_model_link_to(name, options)
click to toggle source
# File lib/showbuilder.rb, line 54 def show_model_link_to(name, options) self.link_to name, options end
show_page_title()
click to toggle source
# File lib/showbuilder.rb, line 31 def show_page_title self.content_tag :div, :class => 'page-header' do self.content_tag :h1 do self.show_current_itext("title_#{self.action_name}") end end end
show_paginate_renderer()
click to toggle source
# File lib/showbuilder.rb, line 16 def show_paginate_renderer Showbuilder::ShowPaginateRenderer end