When I go to localhost:3000/levels/blah-blah-blah-blah.stuff-stuff
It gives me an ActiveRecord::RecordNotFound error.
I checked the params hash and it gives this:
{"action"=>"show", "controller"=>"levels", "id"=>"blah-blah-blah-blah", "format"=>"stuff-stuff"}
in routes.rb:
resources :levels, only: [:index, :show]
match '*levels' => 'levels#show', :format => false, :via => :get
Instead of match, I tried this and it didn't work either:
get "/levels/:id", to: "levels#show", :format => false