Skip to content

Instantly share code, notes, and snippets.

@mathias
Last active December 11, 2015 06:48
Show Gist options
  • Save mathias/4561381 to your computer and use it in GitHub Desktop.
Save mathias/4561381 to your computer and use it in GitHub Desktop.
<li><%= thing['name'] %></li>
<ul>
<%= render partial: 'thing', collection: @things %>
</ul>
class SomeController < ApplicationController
def my_action
@things = [ {'name' => 'Matt'},
{'name' => 'Ashe'}]
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment