Skip to content

Instantly share code, notes, and snippets.

View Titouax's full-sized avatar

Titouan Dessus Titouax

View GitHub Profile
@hyperbolic-motion
hyperbolic-motion / gist:2380619
Created April 13, 2012 22:45
Rails: basic crud controller conent
# --------------------------------------------------------------------------
# Basic rails CRUD controller snippet
# Find all:
# model => replace with the instance variable
# Model => replace with the class name
# --------------------------------------------------------------------------
def index
@models = Model.all
end