Displaying 1 result from an estimated 1 matches for "get_stori".
Did you mean:
get_stories
2010 Jun 17
7
Why do rails calls a method when I'm calling a property?
...owser shows me the next exception:
undefined method `name'' for nil:NilClass
I don''t know why...here''s my controller:
#Controller starts here
class StoriesController < ApplicationController
before_filter :login_required, :only => [ :new, :create]
def index
get_stories ''votes_count >= 5''
end
def bin
get_stories ''''
render :action => ''index''
end
protected
def get_stories(conditions)
@stories = Story.find :all, :order => ''id DESC'', :conditions =>
conditions...