Module: Twitter::Bootstrap::Components::Rails::V3::ComponentsHelper

Defined in:
app/helpers/twitter/bootstrap/components/rails/v3/components_helper.rb

Instance Method Summary collapse

Instance Method Details

#bootstrap_alert(options, &block) ⇒ Object



7
8
9
# File 'app/helpers/twitter/bootstrap/components/rails/v3/components_helper.rb', line 7

def bootstrap_alert(options, &block)
  Twitter::Bootstrap::Components::V3::Alert.new(self, options, &block).perform
end

#bootstrap_badge(options = {}, &block) ⇒ Object



11
12
13
# File 'app/helpers/twitter/bootstrap/components/rails/v3/components_helper.rb', line 11

def bootstrap_badge(options = {}, &block)
  Twitter::Bootstrap::Components::V3::Badge.new(self, options, &block).perform
end

#bootstrap_button(options = {}, &block) ⇒ Object



15
16
17
# File 'app/helpers/twitter/bootstrap/components/rails/v3/components_helper.rb', line 15

def bootstrap_button(options = {}, &block)
  Twitter::Bootstrap::Components::V3::Button.new(self, options, &block).perform
end

#bootstrap_button_group(options = {}, &block) ⇒ Object



19
20
21
# File 'app/helpers/twitter/bootstrap/components/rails/v3/components_helper.rb', line 19

def bootstrap_button_group(options = {}, &block)
  Twitter::Bootstrap::Components::V3::ButtonGroup.new(self, options, &block).perform
end

#bootstrap_form_for(object, *args, &block) ⇒ Object

add ons



40
41
42
# File 'app/helpers/twitter/bootstrap/components/rails/v3/components_helper.rb', line 40

def bootstrap_form_for(object, *args, &block)
  simple_form_for(object, *args, &block)
end

#bootstrap_media_object(options = {}, &block) ⇒ Object



27
28
29
# File 'app/helpers/twitter/bootstrap/components/rails/v3/components_helper.rb', line 27

def bootstrap_media_object(options = {}, &block)
  Twitter::Bootstrap::Components::V3::MediaObject.new(self, options, &block).perform
end

#bootstrap_navbar_brand(options = {}, &block) ⇒ Object



44
45
46
# File 'app/helpers/twitter/bootstrap/components/rails/v3/components_helper.rb', line 44

def bootstrap_navbar_brand(options = {}, &block)
  Twitter::Bootstrap::Components::V3::NavbarBrand.new(self, options, &block).perform
end

#bootstrap_responsive_embed(options = {}, &block) ⇒ Object



35
36
37
# File 'app/helpers/twitter/bootstrap/components/rails/v3/components_helper.rb', line 35

def bootstrap_responsive_embed(options = {}, &block)
  Twitter::Bootstrap::Components::V3::ResponsiveEmbed.new(self, options, &block).perform
end

#bootstrap_responsive_media_object(options = {}, &block) ⇒ Object



23
24
25
# File 'app/helpers/twitter/bootstrap/components/rails/v3/components_helper.rb', line 23

def bootstrap_responsive_media_object(options = {}, &block)
  Twitter::Bootstrap::Components::V3::ResponsiveMediaObject.new(self, options, &block).perform
end

#bootstrap_thumbnail(options = {}, &block) ⇒ Object



31
32
33
# File 'app/helpers/twitter/bootstrap/components/rails/v3/components_helper.rb', line 31

def bootstrap_thumbnail(options = {}, &block)
  Twitter::Bootstrap::Components::V3::Thumbnail.new(self, options, &block).perform
end