Today should be considered today based on location. This is what I have in the `tasks_controller.rb` so far:

```
def day_task
  @tasks = Task.order(:due_date)
  @task_months = @tasks.where('due_date >= ? AND due_date <= ? AND user_id = ?', Time.current.beginning_of_day, Time.current.end_of_day, current_user.id)
end

```

Here's the schema:

```
ActiveRecord::Schema.define(version: 20160322195458) do

  create_table "tasks", force: :cascade do |t|
    t.string   "name"
    t.boolean  "status"
    t.datetime "created_at", null: false
    t.datetime "updated_at", null: false
    t.integer  "user_id"
    t.datetime "due_date"
  end

  create_table "users", force: :cascade do |t|
    t.string   "email",                  default: "", null: false
    t.string   "encrypted_password",     default: "", null: false
    t.string   "reset_password_token"
    t.datetime "reset_password_sent_at"
    t.datetime "remember_created_at"
    t.integer  "sign_in_count",          default: 0,  null: false
    t.datetime "current_sign_in_at"
    t.datetime "last_sign_in_at"
    t.string   "current_sign_in_ip"
    t.string   "last_sign_in_ip"
    t.datetime "created_at",                          null: false
    t.datetime "updated_at",                          null: false
    t.string   "username"
    t.string   "name"
  end

```

My view displays the tasks with this code:

```
  <% @task_months.each do |task| %>
    <tr>
      <td><%= link_to task.name, task %></td>
      <td><%= link_to 'Edit', edit_task_path(task), class: "btn btn-info" %></td>
      <td><%= link_to 'Destroy', task, method: :delete, data: { confirm: 'Are you sure?' }, class: "btn btn-danger" %></td>
    </tr>

  <% end %>

```

[Here's my repo.](https://github.com/hackmajor/Geeks2Code)

How do I do it?

Thank you.

-Chris