lib/extensions/action_dispatch/routing/mapper.rb
def draw_static_pages
        draw_routes
        generate_controller
        draw_sub_pages
      end
# Method for drawing the routes for static pages automatically.
# Any .html.erb file in `app/views/pages` will be served as the dasherized file name.
# @example
#   about_us.html.erb will be served at http:/example/about-us
#   and the link helper will be available as `about_us_path`
Method for drawing the routes for static pages automatically.
Any .html.erb file in `app/views/pages` will be served as the dasherized file name.
Method for drawing the routes for static pages automatically . Any . html . erb file in ` app / views / pages ` will be served as the dasherized file name .
def draw_static_pages
        draw_routes
        generate_controller
        draw_sub_pages
      end
def draw_static_pages draw_routes generate_controller draw_sub_pages end
Method for drawing the routes for static pages automatically.
Method for drawing the routes for static pages automatically .
example
about_us.html.erb will be served at http:/example/about-us and the link helper will be available as `about_us_path`
about_us . html . erb will be served at http : / example / about - us and the link helper will be available as ` about_us_path `