My question is very simple: how can I change `aasm` transitions on button click? What should I put in my view?

I have two buttons: `Approve` and `Reject`. My states look like this:

```
  aasm :column => 'state' do
    state :pending, :initial => true
    state :approved
    state :rejected

    event :approve do
      transitions :to => :approved, :from => [:pending]
    end

    event :reject do
      transitions :to => :rejected, :from => [:pending]
    end
  end

```

UPDATE:
My params are these: 

`{"utf8"=>"✓",
 "_method"=>"put",
 "authenticity_token"...",
 "commit"=>"APP",
 "id"=>"65"}`. 

And this is how I access action from the view:

```
= form_for([:admin, shop], method: :put, data: { confirm: "You sure?" }) do |f|
  = f.submit "Approve", :controller => :shops, :action => :approve

```

My controller code:

```
def approve
  @shop = Shop.find(params[:id])
  @shop.approve!
end

```

Routes:

```
namespace :admin do
  get "shops/:id/approve" => "shops#approve"

```