I am using ruby on rails to make a simple social networking site that includes different message boards for each committee of a student group. I want the url structure for each board to look like `https://<base_url>/boards/<committee_name>` and this will bring the user to the message board for that committee. 

My routes.rb file looks like: 

```
resources :committees, only: [:index] 
match '/boards/:name', to: 'committees#index(name)'

```

My index function of committees\_controller.rb file looks like: 

```
def index(name)  
   @posts = Committee.where(name: name)  
end

```

And then I'll use the `@posts` variable on the page to display all of the posts, but right now when I navigate to `https://<base_url>/boards/<committee_name>` I get an Unknown Action error, and it says `The action 'index(name)' could not be found for CommitteesController`.

Could someone guide me through what I have done wrong?

Once I get this working, how would I make a view that reflects this url structure?