Rails.application.routes.draw do namespace :superconductor, module: 'Superconductor' do put 'edit/*file(.:format)' => 'file#update', :as => nil get 'edit/*file(.:format)' => 'file#edit', :as => :file end end