module BootstrapCDN::Rails::CDN::ActionViewExtensions

Constants

BOOTSTRAP_VERSIONS
FONTAWESOME_VERSIONS
OFFLINE

Public Instance Methods

boostrap_css_include_tag(options = {version: BOOTSTRAP_VERSIONS.first}) click to toggle source
# File lib/bootstrap-cdn-rails/action_view_helpers.rb, line 8
def boostrap_css_include_tag(options = {version: BOOTSTRAP_VERSIONS.first})
  stylesheet_link_tag("//netdna.bootstrapcdn.com/bootstrap/#{options[:version]}/css/bootstrap.min.css", options)
end
boostrap_js_include_tag(options = {version: BOOTSTRAP_VERSIONS.first}) click to toggle source
# File lib/bootstrap-cdn-rails/action_view_helpers.rb, line 12
def boostrap_js_include_tag(options = {version: BOOTSTRAP_VERSIONS.first})
  javascript_include_tag("//netdna.bootstrapcdn.com/bootstrap/#{options[:version]}/js/bootstrap.min.js", options)
end
bootswatch_css_include_tag(options = {version: BOOTSTRAP_VERSIONS.first, name: "cosmo"}) click to toggle source
# File lib/bootstrap-cdn-rails/action_view_helpers.rb, line 20
def bootswatch_css_include_tag(options = {version: BOOTSTRAP_VERSIONS.first, name: "cosmo"})
  stylesheet_link_tag("//netdna.bootstrapcdn.com/bootswatch/#{options[:version]}/#{options[:name]}/bootstrap.min.css", options)
end
fontawesome_css_include_tag(options = {version: FONTAWESOME_VERSIONS.first}) click to toggle source
# File lib/bootstrap-cdn-rails/action_view_helpers.rb, line 16
def fontawesome_css_include_tag(options = {version: FONTAWESOME_VERSIONS.first})
  stylesheet_link_tag("//netdna.bootstrapcdn.com/font-awesome/#{options[:version]}/css/font-awesome.min.css", options)
end