Module: BlogHelper
- Included in:
- AuthorsHelper, BaseController, BaseHelper
- Defined in:
- app/helpers/blog_helper.rb
Instance Method Summary collapse
-
#blog_base_url ⇒ Object
The base URL for this request, calculated by looking up the URL for the main blog index page.
-
#this_blog ⇒ Object
Find the blog whose base_url matches the current location.
Instance Method Details
#blog_base_url ⇒ Object
The base URL for this request, calculated by looking up the URL for the main blog index page.
4 5 6 |
# File 'app/helpers/blog_helper.rb', line 4 def blog_base_url url_for(controller: '/articles', action: 'index').gsub(%r{/$}, '') end |