routes - Rails change root-path -
i have thingspeak server working on http://portail.lyc-st-exupery-bellegarde.ac-lyon.fr/srv3, witch behind proxy server.
how can tell rails add "srv3/" url ?
/srv3 should root.
thanks
put routes in scope
block, this:
rails.application.routes.draw scope "/srv3" root to: "root#index" ... end end
then routes have /srv3
prefix:
$ rake routes prefix verb uri pattern controller#action root /srv3(.:format) root#index ...
see the docs more info.
Comments
Post a Comment