diff --git a/config/routes.rb b/config/routes.rb index 1ba035f..4340a9b 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -7,13 +7,13 @@ Rails.application.routes.draw do get 'markdown', to: 'application#markdown' - get '/sites/:site_id/public/:type/:basename', to: 'sites#send_public_file' # XXX Mantenemos solo esta ruta acá porque form_for no reconoce @site # como un objeto válido resources :invitadxs, only: [:create] resources :sites, only: [:index, :show], constraints: { site_id: /[^\/]+/, id: /[^\/]+/ } do + get 'public/:type/:basename', to: 'sites#send_public_file' resources :posts resources :templates resources :invitadxs, only: [:index, :new, :show] do