Permalink
Browse files

Fixing the RSS feed, displaying only the photographers stories

  • Loading branch information...
penso committed Jan 13, 2013
1 parent 26f51ef commit 87f9225faf6bf19c2d48da21333d0c0ae727c9d3
Showing with 3 additions and 1 deletion.
  1. +3 −1 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

0 comments on commit 87f9225

Please sign in to comment.