title: Filtering Rails 3 database query through multiple conditions/filters
body: <p>I'm in a real predicament here and I'm pretty sure that what I'm trying to do is relatively simple. Basically I have a database (migration to follow) that lists out a bunch of students and information about them. There are four columns, seeking_position, min_hourly, max_hourly, and start_weeks and I need to be able to filter on the front end of the site. Right now all I can figure out how to do is show a page with all of the users listed on it. I'm be no means looking for a handout here, I've already gone through everything I know and even tried stuff I didn't really understand to try and get this working. What seems to be tripping me up is finding a way to filter by multiple things at the same time. For example, show all students with a seeking_position of "internship", a min_hourly of "7", a max_hourly of "10", and a start_weeks of "2 to 4". Any ideas? I'm on Rails 3.0.3 using ActiveRecord without scaffolding. Thanks :)</p>
  
  <p>My migration:</p>
  
  <pre><code>class CreateStudents &lt; ActiveRecord::Migration
    def self.up
      create_table :students do |t|
        t.string :name
        t.string :email
        t.integer :phone
        t.text :bio
        t.text :resume
        t.string :seeking_position
        t.integer :min_hourly
        t.integer :max_hourly
        t.integer :start_weeks
        t.string :pic_uid
  
        t.timestamps
      end
    end
  
    def self.down
      drop_table :students
    end
  end
  </code></pre>