Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixing the RSS feed, displaying only the photographers stories

  • Loading branch information...
commit 87f9225faf6bf19c2d48da21333d0c0ae727c9d3 1 parent 26f51ef
@penso authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 app/controllers/stories_controller.rb
View
4 app/controllers/stories_controller.rb
@@ -5,7 +5,9 @@ class StoriesController < ApplicationController
before_filter :get_stories, :only => [:edit, :sort, :editlong, :new, :updatelong]
def index
- @stories = Story.all(:order => 'id DESC')
+ raise ActiveRecord::RecordNotFound unless @photographer
+
+ @stories = @photographer.stories.all(:order => 'id DESC')
respond_to do |format|
format.html
format.atom
Please sign in to comment.
Something went wrong with that request. Please try again.