Trying to use the simple-form gem with Rails to POST to my database (postgresql). I have followed a few videos but I'm not entirely sure what's going wrong. My form worked before I made the method to post (obviously didn't do anything).

Here's the error I get.

[![enter image description here](https://i.stack.imgur.com/NEM4w.jpg)](https://i.stack.imgur.com/NEM4w.jpg)

Straight away I was thinking a routes issue. But I've had a crack for a while and can't fix it.

```markdown
undefined method `client_assets_path' for #<ActionView::Base:0x0000000000ccd8>
Did you mean?  clients_new_path

```

Here's my [repo](https://github.com/benaitcheson/T2A2_Marketplace_App) if it helps with the models.

Here's my form:

```rb
<%= simple_form_for @clients do |f| %>
        <div class="form-inputs">
            <%# Home %>
            <%= f.input :ppor %>
            <br>
        </div>

        <div class="form-actions">
            <%= f.button :submit %>
        </div>
    <% end %

```

Here's my method in Client Controller:

```rb
class ClientController < ApplicationController
  def index
    @clients = ClientAsset.all
  end

  def new
    @clients = ClientAsset.new
  end

  def create
    @clients = ClientAsset.new(client_asset_params)
    if @clients.save
      redirect_to @clients
    else
      render :new
    end
  end

  private
  def client_asset_params
    params.require(:id).permit(:ppor)
  end
end

```

and here's my routes:

```rb
Rails.application.routes.draw do

  devise_for :admins
  root to: "planner#index"

  get "/index", to: "planner#index", as: :index

  get "/howto", to: "planner#howto", as: :howto

  get "/products", to: "planner#products", as: :products

  get "/planners", to: "planner#planners", as: :planners

  get "/admins/sign_in", to: "admin#sign_in", as: :sign_in

  get "/admins/sign_up", to: "admin#sign_up", as: :sign_up

  devise_scope :admin do
    get "/admins/sign_out" => "devise/sessions#destroy"
  end

  get "/admins/password/edit", to: "devise/password#edit", as: :edit

  get "/dashboard", to: "client#dashboard", as: :dashboard

  get "clients/new", to: "client#new"

end

```