irbで複数形を確認する
今更ですが、ActiveSupport::Inflectorっていうみたいですね...
$ irb >> require 'active_support' => true >> 'dog'.pluralize => "dogs" >> 'dogs'.singularize => "dog" >> exit
Source:
ActiveSupport::Inflector
今更ですが、ActiveSupport::Inflectorっていうみたいですね...
$ irb >> require 'active_support' => true >> 'dog'.pluralize => "dogs" >> 'dogs'.singularize => "dog" >> exit
Source:
ActiveSupport::Inflector