This file contains 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 FooController | |
def index | |
# The controller is responsible for gathering the things needed | |
# to make the response. This should be a single line of code | |
@things = Foo.things | |
# The controller is responsible for sending the view back to the user. | |
# the view uses our instance variable above to render @things | |
render :some_view | |
end |