Forum: Ruby on Rails Can't get link_to to work

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
28c7ef5ffd77ddcaf495aa389103b764?d=identicon&s=25 Jason (Guest)
on 2007-05-23 17:34
Ok,

I have the following in a view:

link_to('Change', :controller => 'sales_order', :action =>
'assign_difficulty', :id => @sales_order.id)

I have this in my sales_order_controller:

  def assign_difficulty
    # some code here.....
  end

Yet, when I click the link in my browser, I get the following error:

  no route found to match "/sales_order/assign_difficulty/773332" with
{:method=>:get}

What am I doing wrong here?

Thanks for your help,

Jason
28c7ef5ffd77ddcaf495aa389103b764?d=identicon&s=25 Jason (Guest)
on 2007-05-23 17:35
Never mind, I found a stinking typo

Sorry about that!
This topic is locked and can not be replied to.