method
singular_route_name
rails latest stable - Class:
Rails::Generators::NamedBase
singular_route_name()private
No documentation available.
# File railties/lib/rails/generators/named_base.rb, line 159
def singular_route_name # :doc:
if options[:model_name]
"#{controller_class_path.join('_')}_#{singular_table_name}"
else
singular_table_name
end
end