Module: BlogHelper
- Included in:
- AuthorsHelper, BaseController, BaseHelper, Users::RegistrationsController
- 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.
6 7 8 |
# File 'app/helpers/blog_helper.rb', line 6 def blog_base_url url_for(controller: "/articles", action: "index").gsub(%r{/$}, "") end |