Created
June 20, 2011 03:02
-
-
Save kevinquinnyo/1035058 to your computer and use it in GitHub Desktop.
this doesn't work
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
#pages_controller | |
def home | |
@places = Place.all | |
@stories = Story.all | |
... | |
#views/pages/home.html.erb | |
... | |
<% @stories.each do |story| %> | |
<%= link_to story.title, place_story_path(:id => story.to_param, :place_id => @place.to_param) %></br> | |
<% end %> | |
... | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment