title: How to pass the parameter from view to controller in Rails
body: <p>I am new to Rails and I am working on a simple application for "tasklist" (To do list). </p>
  
  <p>In my app, I want to categories the tasks based different type of category(shopping, todo - user can create own category). So I created separate model for <code>User</code>, <code>Category</code> and <code>Task</code> and each <code>Task</code> is linked with one <code>category</code>. </p>
  
  <p>In my view (<code>users/show.html.erb</code> -n side this I render view for <code>category</code> and <code>task</code>), I have listed all the categories in left side and all the open tasks in right side. I want to make categories as LINKS, so when user select one categories, only the tasks which is linked to that category type will get displayed in the right side. </p>
  
  <p>I understand how a normal link_to works when it takes to a new page. I also understand how button works in bootstrap. But I am not able to identify how I can pass the category selection into the controller, so I can pull only the task where the category matches with what user selected. </p>
  
  <p>Thanks for the help.  </p>