Created
July 1, 2011 16:05
-
-
Save JoshMcKin/1058838 to your computer and use it in GitHub Desktop.
NoMethodError on class
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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