Skip to content

Instantly share code, notes, and snippets.

@adagio
Created August 30, 2014 23:41
Show Gist options
  • Save adagio/61435ca96c75d873b660 to your computer and use it in GitHub Desktop.
Save adagio/61435ca96c75d873b660 to your computer and use it in GitHub Desktop.
Create a Controller to simply retrieve all records for the entity
class WeeksController < ApplicationController
# GET /weeks
def index
@weeks = Week.all
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment