skip to Main Content

Nginx – Dropping a part of the URL in Rails

I have a setup where I route all requests for /upload/* to Rails. Using the blog example, I want somedomain.com/upload/article/new to be treated as somedomain.com/article/new by Rails. I ended up with the following. routes.rb Rails.application.routes.draw do root "articles#index" scope 'upload'…

VIEW QUESTION
Back To Top
Search