When a controller is generated, rails adds an entry in routes.rb for that controller and action like this.
But it don’t create helper for this route as in this eg:
get ‘login’ => ‘sessions#login’
Using the second route, I can write “login_path” in any view to redirect to login action.
But how can I use the default generated route inside view without customizing ? Surely I cannot give monthly_receipt/new_path right? I cannot find this in rails guides and rake routes doesn’t show any helper for this route because there is no one.