RailsCasts Pro episodes are now free!
Learn more or hide this
GitHub User: lothie
I don't have a ton of experience coding (although I've written working web apps w/ db backend in ASP years ago), so I'm probably missing something obvious, but I cannot for the LIFE of me figure out why I'm getting the following error:
undefined method `search' for #Class:0x4601c10
I'm not following this tutorial exactly but rather using a combination of this and https://we.riseup.net/rails/simple-search-tutorial, which is similar in a lot of respects. The main difference seems to be that the other tutorial uses this in the form declaration:
<%= form_tag :controller => 'sheets', :action => 'search', :method => 'get' do %>
This is because my app is set up a little bit differently. What am I missing here? I can see where the error IS (i.e. Project.search in the controller file) but I don't know how to fix it, and I've googled till I can't see straight.