# :URL Problem

**URL:** <https://www.ruby-forum.com/t/url-problem/146767>\
**Category:** Rails\
**Created:** [August 25, 2008, 10:31am UTC](https://www.ruby-forum.com/t/url-problem/146767 "2008-08-25T10:31:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![svenb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/dec6dc/32.png) [@svenb](https://www.ruby-forum.com/u/svenb)\
**Post date:** [August 25, 2008, 10:31am UTC](https://www.ruby-forum.com/t/url-problem/146767/1 "2008-08-25T10:31:51Z")

</div>

I have a Problem with :url i have the following code:

:url =\> { :controller =\> :singlereceipts, :action =\> :update, :id =\>  
sr.id }

and the generated URL looks like this:  
/singlereceipts/709689955

if i change :controller to “singlereceipts/update”, the URL changes to:  
/singlereceipts/update/index/709689955

and if i add :action =\> :update to the long controller, the URL changes  
to:  
/singlereceipts/update/update/709689955

I dont have a clue whats going on, i hope you can help me.

Greetings

Sven
