Displaying 1 result from an estimated 1 matches for "fireprevention_1002".
2011 May 26
3
Kaminari rspec testing undefined method page.
...rch(params[:search])
@fire_preventions =
@search.page(params[:page]).per(Settings.fire_preventions_per_page)
end
I''m using meta_search.
The test error is:
Failure/Error: get :index
NoMethodError:
undefined method `page'' for [#<FirePrevention:0x976
@name="FirePrevention_1002">]:Array
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to rubyonrails-ta...