I’d like to call *_path methods (like root_path, post_path, etc) inside ApplicationHelper.
If call it directly, i get an error
NameError: undefined local variable or method `root_path' for #<ActionView::Base:0x00000002d94480>
Is there some convenient to do that?
You probably forgot to define root_path in config/routes.rb. For example,