How to customize the singularization of class name in rails.


I am working on Rails 4.1.0. And i have generated leaves_controller and Leave model in my application.

But the application generated routes for leaves as like new_leafe, edit_leaf etc.

Actually I want the singularize string of Leave as Leave only, like new_leave_path, edit_leave_path.

If any idea to singularize class name in Rails, please share.

Thank & Regards, Prachi

Hey Prachi!

This list is solely for new feature discussion and other meta issues. For actual help with Rails, please post to rubyonrails-talk or Stack Overflow.