Module: BootstrapExamples::ApplicationHelper
- Defined in:
- app/helpers/bootstrap_examples/application_helper.rb
Instance Method Summary collapse
Instance Method Details
#bvh_app_home_link ⇒ Object
3 4 5 6 7 |
# File 'app/helpers/bootstrap_examples/application_helper.rb', line 3 def bvh_app_home_link root_path rescue NameError '/' end |
#bvh_show_source(path) ⇒ Object
9 10 11 12 |
# File 'app/helpers/bootstrap_examples/application_helper.rb', line 9 def bvh_show_source(path) erb = IO.read(bvh_view_dir.join("#{path}.html.erb")) content_tag(:pre, erb) end |