Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def path_to page_name
- # create objects for engine path_tos
- podcast_paths = Object.new
- podcast_paths.extend NavigationHelpers::Refinery::Podcasts
- case page_name
- when /blah/
- ...
- else
- podcast_paths.path_to page_name
- # if more then one engine
- # first_engine.path_to(page_name) OR second_engine.path_to(page_name)
- end
- end
Add Comment
Please, Sign In to add comment