method
route_resources
route_resources(*resources)
public
Hide source
# File railties/lib/rails_generator/commands.rb, line 520 def route_resources(*resources) resource_list = resources.map { |r| r.to_sym.inspect }.join(', ') look_for = "\n map.resources #{resource_list}\n" logger.route "map.resources #{resource_list}" gsub_file 'config/routes.rb', /(#{look_for})/mi, '' end