hpjaj/Mind-on-Rails — pull request #4 by hpjaj (2014-10-12 04:18:39+00:00)
Title: Installed postgres and pg_search gem

Hey Eliot,

Thanks for the tips on postgres.

I tried everything, and I have successfully:

- installed postgres using the postgres.app
- created and migrated the databases
- seeded the dev db
- added the `pg_search` gem
- revised my `database.yml` file, gemfile, `app/views/notes/index.html.erb`, `app/controllers/notes_controller.rb`, and `app/models/notes.rb`

The databases are there, and all is well. Now, here are the problems :)

I am following this [Railscast](http://youtu.be/tNG4gmQ3dV0) to create the search functionality. Two things are not working that I cannot figure out (well, at least two).

1. In the `app/models/notes.rb` file, the *else* statement, the **scoped** method is coming up as undefined, and I cannot figure out from his Railscast how I am supposed to define it.
2. In the `app/controllers/notes_controller.rb` file, I added in the `text_search` method as he describes. Cannot test it out, because I cannot get past the above error.

Can you please take a look and see if you can figure out how to get this up and running? Or give me some tips on how to figure it out?

Thanks,
Harry