Module: ActiveAnalytics::PagesHelper
- Included in:
- PagesController
- Defined in:
- app/helpers/active_analytics/pages_helper.rb
Instance Method Summary collapse
Instance Method Details
#page_from_params ⇒ Object
7 8 9 10 11 12 13 |
# File 'app/helpers/active_analytics/pages_helper.rb', line 7 def page_from_params if params[:page] == "index" "/" elsif params[:page].present? "/#{params[:page]}" end end |
#page_to_params(name) ⇒ Object
3 4 5 |
# File 'app/helpers/active_analytics/pages_helper.rb', line 3 def page_to_params(name) name == "/" ? "index" : name[1..-1] end |