Topic: understanding link_to

I have:

class User < ActiveRecord::Base
  has_many :stories, dependent: :destroy


class Story < ActiveRecord::Base
  belongs_to :user

  state_machine :state, :initial => :new do
    event :start do
      transition :new => :started

In routes.rb

match '/story', to: 'stories#new'

In my view I need buttons that calls state methods for example @current_story.start.
I've tried:

link_to 'start', @current_story, action: 'start', class: 'btn btn-mini'

but it opens localhost:3000/story.1 with my new.html.haml. What I'm doing wrong?

Re: understanding link_to

Are those all of the routes you have?  Can you post the code for your stories controller?

Re: understanding link_to

Nevermind, I already did it.