class StoryBrowserController < ActionController::Base layout nil def index @story_files = Story.find(:all).map(&:path).uniq end def show @stories = Story.find(:all, :conditions => { :path => params[:id] }) respond_to do |format| format.text do render :text => @stories.map(&:to_s).join("\n\n") end format.html end end end