Posts Tagged ‘rails helpers’

Symbol => ActiveRecord::Base

>> :posts.to_s.singularize.camelcase.constantize
=> Post(id: integer, user_id: integer, title: string, body: string, ...)