从 Named Base 里拆分而来。
rails generate resource
rails generate scaffold
rails generate scaffold_controller
方法:
attr_reader :controller_name, :controller_file_name
和:
controller_class_path controller_file_path controller_class_name controller_i18n_scope orm_class orm_instance assign_controller_names!
最后更新于4年前