Module: Twitter::Bootstrap::Components::Rails::V3::ComponentsHelper
- Defined in:
- app/helpers/twitter/bootstrap/components/rails/v3/components_helper.rb
Instance Method Summary collapse
- #bootstrap_alert(options, &block) ⇒ Object
- #bootstrap_badge(options = {}, &block) ⇒ Object
- #bootstrap_button(options = {}, &block) ⇒ Object
- #bootstrap_button_group(options = {}, &block) ⇒ Object
-
#bootstrap_form_for(object, *args, &block) ⇒ Object
add ons.
- #bootstrap_media_object(options = {}, &block) ⇒ Object
- #bootstrap_navbar_brand(options = {}, &block) ⇒ Object
- #bootstrap_responsive_embed(options = {}, &block) ⇒ Object
- #bootstrap_responsive_media_object(options = {}, &block) ⇒ Object
- #bootstrap_thumbnail(options = {}, &block) ⇒ Object
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(, &block) Twitter::Bootstrap::Components::V3::Alert.new(self, , &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( = {}, &block) Twitter::Bootstrap::Components::V3::Badge.new(self, , &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 ( = {}, &block) Twitter::Bootstrap::Components::V3::Button.new(self, , &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 ( = {}, &block) Twitter::Bootstrap::Components::V3::ButtonGroup.new(self, , &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( = {}, &block) Twitter::Bootstrap::Components::V3::MediaObject.new(self, , &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 ( = {}, &block) Twitter::Bootstrap::Components::V3::NavbarBrand.new(self, , &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 ( = {}, &block) Twitter::Bootstrap::Components::V3::ResponsiveEmbed.new(self, , &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( = {}, &block) Twitter::Bootstrap::Components::V3::ResponsiveMediaObject.new(self, , &block).perform end |