2016-09-27 1 views

答えて

4
s = Invoice 
s.name.pluralize + 'Controller' 
=> "InvoicesController" 

を返し

"InvoicesController".constantize 
=> InvoicesController 
関連する問題