prachi@cuberoot.in
2014-May-30 11:24 UTC
How to customize the singularization of class name in rails.
Hello, 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 -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-core+unsubscribe@googlegroups.com. To post to this group, send email to rubyonrails-core@googlegroups.com. Visit this group at http://groups.google.com/group/rubyonrails-core. For more options, visit https://groups.google.com/d/optout.