When a controller is generated, rails adds an entry in routes.rb for
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
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
find this in rails guides and rake routes doesn’t show any helper for
route because there is no one.