I'm super new to Ruby/Rails and need help with an assignment I'm working on. I'm supposed to add native advertising to Bloccit (project i'm working on for class) in the form of sponsored links. Any help would be very appreciated :)

What needs to be done:
1) Create a new model called Advertisement. It should have the following attributes: title:string, copy:text, price:integer.

2) Generate a controller for the new advertisement model with index and show actions. Should the controller class and file names have a singular (advertisement) or plural (advertisements) prefix? Be consistent with the naming pattern used for the posts controller class and file generated earlier.

3) Update routes.rb to use resourceful routing for Advertisement.

4) Complete the index and show actions in AdvertisementsController.

5) Update the Advertisement index and show views.

This is what I've got:

First thing, create model like so

```
rails g model Advertisements title:string, copy:text, price:integer

```

Then, create controller like so

```
rails g controller Advertisements index show

```

Resourceful routing:

```
Rails.application.routes.draw do

  resources :advertisement
  resources :posts 

  get 'about' => 'welcome#about'

  root to: 'welcome#index'

end

```

Index and show actions:

```
class AdvertisementController < ApplicationController
  def index
    @advertisements = Advertisement.all
  end

  def show
    @advertisements = Advertisement.find(params[:id])
  end
end

```

Index view:

```
<h1>Advertisements</h1>
<% @advertisements.each do |advertisement| %>
<% end %>

```

Show view:

```
<h1><%= @advertisements.title %></h1>
<p><%= @advertisements.copy %></p>
<p><%= @advertisements.price %></p>

```

When I go to localhost:3000/advertisement I see a blank page page with "Advertisements" at the top. When I go to to localhost:3000/advertisement/index I see an error message:

Couldn't find Advertisement with 'id'=index

```
  def show
    @advertisements = Advertisement.find(params[:id]) #second line highlighted in red
  end
end

```

Why I can't I view an individual advertisement or see an index of all advertisements like I'm supposed to?