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

Popular posts from this blog

wordpress - (T_ENDFOREACH) php error -

Export Excel workseet into txt file using vba - (text and numbers with formulas) -

Using django-mptt to get only the categories that have items -