Skip to content

Instantly share code, notes, and snippets.

@JoshMcKin
Created July 1, 2011 16:05
Show Gist options
  • Save JoshMcKin/1058838 to your computer and use it in GitHub Desktop.
Save JoshMcKin/1058838 to your computer and use it in GitHub Desktop.
NoMethodError on class
class FoosController < ApplicationController
# GET /foos
# GET /foos.xml
def index
@foos = Foo.all
Foo.bad_method #should raise NoMethodError
respond_to do |format|
format.html # index.html.erb
format.xml { render :xml => @foos }
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment