Class: Twitter::Bootstrap::Components::Rails::V3::ViewHelper
- Inherits:
-
Rao::ViewHelper::Base
- Object
- Rao::ViewHelper::Base
- Twitter::Bootstrap::Components::Rails::V3::ViewHelper
- Defined in:
- app/view_helpers/twitter/bootstrap/components/rails/v3/view_helper.rb
Instance Method Summary collapse
- #alert(options, &block) ⇒ Object
- #badge(options = {}, &block) ⇒ Object
- #button(options = {}, &block) ⇒ Object
- #button_group(options = {}, &block) ⇒ Object
-
#form_for(object, *args, &block) ⇒ Object
add ons.
- #media_object(options = {}, &block) ⇒ Object
- #navbar_brand(options = {}, &block) ⇒ Object
- #responsive_embed(options = {}, &block) ⇒ Object
- #responsive_media_object(options = {}, &block) ⇒ Object
- #thumbnail(options = {}, &block) ⇒ Object
Instance Method Details
#alert(options, &block) ⇒ Object
7 8 9 |
# File 'app/view_helpers/twitter/bootstrap/components/rails/v3/view_helper.rb', line 7 def alert(, &block) Twitter::Bootstrap::Components::V3::Alert.new(c, , &block).perform end |
#badge(options = {}, &block) ⇒ Object
11 12 13 |
# File 'app/view_helpers/twitter/bootstrap/components/rails/v3/view_helper.rb', line 11 def badge( = {}, &block) Twitter::Bootstrap::Components::V3::Badge.new(c, , &block).perform end |
#button(options = {}, &block) ⇒ Object
15 16 17 |
# File 'app/view_helpers/twitter/bootstrap/components/rails/v3/view_helper.rb', line 15 def ( = {}, &block) Twitter::Bootstrap::Components::V3::Button.new(c, , &block).perform end |
#button_group(options = {}, &block) ⇒ Object
19 20 21 |
# File 'app/view_helpers/twitter/bootstrap/components/rails/v3/view_helper.rb', line 19 def ( = {}, &block) Twitter::Bootstrap::Components::V3::ButtonGroup.new(c, , &block).perform end |
#form_for(object, *args, &block) ⇒ Object
add ons
40 41 42 |
# File 'app/view_helpers/twitter/bootstrap/components/rails/v3/view_helper.rb', line 40 def form_for(object, *args, &block) simple_form_for(object, *args, &block) end |
#media_object(options = {}, &block) ⇒ Object
27 28 29 |
# File 'app/view_helpers/twitter/bootstrap/components/rails/v3/view_helper.rb', line 27 def media_object( = {}, &block) Twitter::Bootstrap::Components::V3::MediaObject.new(c, , &block).perform end |
#navbar_brand(options = {}, &block) ⇒ Object
44 45 46 |
# File 'app/view_helpers/twitter/bootstrap/components/rails/v3/view_helper.rb', line 44 def ( = {}, &block) Twitter::Bootstrap::Components::V3::NavbarBrand.new(c, , &block).perform end |
#responsive_embed(options = {}, &block) ⇒ Object
35 36 37 |
# File 'app/view_helpers/twitter/bootstrap/components/rails/v3/view_helper.rb', line 35 def ( = {}, &block) Twitter::Bootstrap::Components::V3::ResponsiveEmbed.new(c, , &block).perform end |
#responsive_media_object(options = {}, &block) ⇒ Object
23 24 25 |
# File 'app/view_helpers/twitter/bootstrap/components/rails/v3/view_helper.rb', line 23 def responsive_media_object( = {}, &block) Twitter::Bootstrap::Components::V3::ResponsiveMediaObject.new(c, , &block).perform end |