Skip to content

Instantly share code, notes, and snippets.

@crayment
Created April 5, 2010 07:35
Show Gist options
  • Save crayment/356126 to your computer and use it in GitHub Desktop.
Save crayment/356126 to your computer and use it in GitHub Desktop.
class CheckoutsController < ApplicationController
def index
@categories = Category.all
end
end
<% @categories.each do |cat| %>
<p><%= cat.name %></p>
<% end %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment