# Can't get link\_to to work

**URL:** <https://www.ruby-forum.com/t/cant-get-link-to-to-work/104897>\
**Category:** Rails\
**Created:** [May 23, 2007, 5:34pm UTC](https://www.ruby-forum.com/t/cant-get-link-to-to-work/104897 "2007-05-23T17:34:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jason](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/dc4da7/32.png) [@jason](https://www.ruby-forum.com/u/jason)\
**Post date:** [May 23, 2007, 5:34pm UTC](https://www.ruby-forum.com/t/cant-get-link-to-to-work/104897/1 "2007-05-23T17:34:21Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![jason](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/dc4da7/32.png) [@jason](https://www.ruby-forum.com/u/jason)\
**Post date:** [May 23, 2007, 5:35pm UTC](https://www.ruby-forum.com/t/cant-get-link-to-to-work/104897/2 "2007-05-23T17:35:13Z")

</div>

Never mind, I found a stinking typo

Sorry about that!
