Class: Twitter::Bootstrap::Components::Rails::V3::ViewHelper

Inherits:
Rao::ViewHelper::Base
  • Object
show all
Defined in:
app/view_helpers/twitter/bootstrap/components/rails/v3/view_helper.rb

Instance Method Summary collapse

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(options, &block)
  Twitter::Bootstrap::Components::V3::Alert.new(c, options, &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(options = {}, &block)
  Twitter::Bootstrap::Components::V3::Badge.new(c, options, &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 button(options = {}, &block)
  Twitter::Bootstrap::Components::V3::Button.new(c, options, &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 button_group(options = {}, &block)
  Twitter::Bootstrap::Components::V3::ButtonGroup.new(c, options, &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(options = {}, &block)
  Twitter::Bootstrap::Components::V3::MediaObject.new(c, options, &block).perform
end


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

def navbar_brand(options = {}, &block)
  Twitter::Bootstrap::Components::V3::NavbarBrand.new(c, options, &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 responsive_embed(options = {}, &block)
  Twitter::Bootstrap::Components::V3::ResponsiveEmbed.new(c, options, &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(options = {}, &block)
  Twitter::Bootstrap::Components::V3::ResponsiveMediaObject.new(c, options, &block).perform
end

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



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

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