I cannot find the meaning of the keyword "mount" in Rails routing system .
I have set up Mercury to use within my Rails application. It added this line to my routes.rb
config file:
Appname::Application.routes.draw do
mount Mercury::Engine => '/'
What does the mount
keyword mean?
Mounting an engine means that the functionality from that engine is available inside your application.
See http://guides.rubyonrails.org/engines.html#mounting-the-engine
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.