translate name in rails

查看rails源码:
lib/ruby/gems/1.8/gems/rails-1.2.3/lib/rails_generator/base.rb

        def inflect_names(name)
          camel  = name.camelize
          under  = camel.underscore
          plural = under.pluralize
          [camel, under, plural]
        end

你可能感兴趣的:(Ruby,Rails)