app/controllers/home_controller.rb
# for rss feeds, load the user's tag filters if a token is passed
for rss feeds, load the user's tag filters if a token is passed
for rss feeds load the user ' s tag filters if a token is passed
def newest_by_user
    by_user = User.where(:username => params[:user]).first!
    @stories, @show_more = get_from_cache(by_user: by_user) {
      paginate stories.newest_by_user(by_user)
    }
    @heading = @title = "Newest Stories by #{by_user.username}"
    @cur_url = "/newest/#{by_user.username}"
    @newest = true
    @for_user = by_user.username
    respond_to do |format|
      format.html { render :action => "index" }
      format.rss {
        render :action => "rss", :layout => false
      }
      format.json { render :json => @stories }
    end
  end
def newest_by_user by_user = User . where ( :username => params [ :user ] ) . first! @stories , @show_more = get_from_cache ( by_user : by_user ) { paginate stories . newest_by_user ( by_user ) } @heading = @title = "Newest Stories by #{by_user.username}" @cur_url = "/newest/#{by_user.username}" @newest = true @for_user = by_user . username respond_to do | format | format . html { render :action => "index" } format . rss { render :action => "rss" , :layout => false } format . json { render :json => @stories } end end
for rss feeds, load the user's tag filters if a token is passed
for rss feeds load the user ' s tag filters if a token is passed