method

generate_routing_code

Importance_1
v4.1.8 - Show latest stable - 0 notes - Class: Rails::Generators::ControllerGenerator
generate_routing_code(action) private

This method creates nested route entry for namespaced resources. For eg. rails g controller foo/bar/baz index Will generate - namespace :foo do

namespace :bar do
  get 'baz/index'
end

end

Show source
Register or log in to add new notes.