Skip to content

Instantly share code, notes, and snippets.

@haberbyte
Created August 22, 2013 22:18
Show Gist options
  • Save haberbyte/6313521 to your computer and use it in GitHub Desktop.
Save haberbyte/6313521 to your computer and use it in GitHub Desktop.
# Rails 4, empty app
# app/controllers/clients_controller.rb
class ClientsController < ApplicationController
def index
@clients = Client.all
end
end
# app/views/clients/index.html.erb
GET /clients.WTF still renders the normal index.html.erb
Shouldn't a 406 Not Acceptable or Missing Template error occur?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment