module Spyro::ActionViewExtension::BasicWidgetsHelper
Public Instance Methods
alert(text, options = {})
click to toggle source
# File lib/spyro/helpers/action_view_extension.rb, line 53 def alert text, options = {} @has_alert = true options[:class] ||= ['alert'] capture_haml do haml_tag :div, options do haml_concat text end end end
group(&block)
click to toggle source
# File lib/spyro/helpers/action_view_extension.rb, line 44 def group &block @has_group = true capture_haml do haml_tag :div, :class => ['btn-group'] do haml_concat capture(&block) end end end