I'm trying to do some basic testing of my application.

I have a controller transactions\_controller.rb with a method 'create' there. Here is my routes:

```
  root GET  /                          home#index
       PUT  /transaction/:id(.:format) transactions#create
       GET  /transaction/:id(.:format) transactions#show
       GET  /types/:type(.:format)     transactions#types
       GET  /sum/:id(.:format)         transactions#sum

```

Here is the code inside transactions\_controller\_test.rb test method:

```
  test "should create new transaction" do 
    put :create, { amount: 7000, type: "cars", parent_id: 2 }
    assert_response(:success, message = '{ "status": "ok" }')
  end

```

And it produces the following error if I run rake test:

```
ActionController::UrlGenerationError: No route matches {:action=>"create", :controller=>"transactions"}

```

Why if everything is in place? Could anybody help me?