
Originally Posted by
Delameko
If you look at the stack trace at the bottom it's leading you towards the problem:
Code:
/Users/slam/Code/shovell/app/controllers/stories_controller.rb:24:in `bin'
stories_controller.rb - line 24, it's trying to load the bin method, but it's not finding it.
What does your stories_controller.rb look like?
Code:
def bin
fetch_stories 'votes_count < 5'
render :action => 'index'
end
protected
def fetch_stories(conditions)
@stories = Story.find :all,
:order => 'id DESC',
:conditions => conditions
end
That is the line 24 which is calling index. Index.rhtml is
Code:
<h2>
<%= story_list_heading %></h2>
</h2>
<%= render :partial => @stories %>
Bookmarks