# Strange 500 Error with namespace::controller#action appearing in reload only

**URL:** <https://www.ruby-forum.com/t/strange-500-error-with-namespace-controller-action-appearing-in-reload-only/155089>\
**Category:** Rails\
**Created:** [December 7, 2008, 7:04pm UTC](https://www.ruby-forum.com/t/strange-500-error-with-namespace-controller-action-appearing-in-reload-only/155089 "2008-12-07T19:04:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nik\_B](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/ee59a6/32.png) [@Nik\_B](https://www.ruby-forum.com/u/Nik_B)\
**Post date:** [December 7, 2008, 7:04pm UTC](https://www.ruby-forum.com/t/strange-500-error-with-namespace-controller-action-appearing-in-reload-only/155089/1 "2008-12-07T19:04:14Z")

</div>

The portion of the log linked below is two requests directly out of  
the log file for the same action. The first request was from me  
putting the address in the browser directly (but can be duplicated by  
linking to the url anywhere in the app). When I reload the browser on  
this url, I get a strange error. To the user, the action appears to  
load fine, but I’m getting a 500 error in the log when it tries to  
find an asset (in this case favicon.ico but appends it with /  
user\_admin/, the namespace.

See backtrace: [http://pastie.org/333269](http://pastie.org/333269)

I’m also finding that link\_to’s generated with within the namespace  
via the {:controller =\> “controller\_name”, :action =\> “action\_name”}  
prepend ‘/user\_admin/’, the namespace, as well.

I’d like to remove the errors, as well as still use the  
{:controller, :action} method inside link\_to if possible.

Thanks for any advice!  
-Nik

---

<div class="post-metadata">

**Author:** ![Nik\_B](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/ee59a6/32.png) [@Nik\_B](https://www.ruby-forum.com/u/Nik_B)\
**Post date:** [December 7, 2008, 7:55pm UTC](https://www.ruby-forum.com/t/strange-500-error-with-namespace-controller-action-appearing-in-reload-only/155089/2 "2008-12-07T19:55:52Z")

</div>

> I’m also finding that link\_to’s generated with within the namespace  
> via the {:controller =\> “controller\_name”, :action =\> “action\_name”}  
> prepend ‘/user\_admin/’, the namespace, as well.

The errors are still baffling me, but the link problem was solved  
merely by putting a ‘/’ before the controller name.

---

<div class="post-metadata">

**Author:** ![Nik\_B](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/ee59a6/32.png) [@Nik\_B](https://www.ruby-forum.com/u/Nik_B)\
**Post date:** [December 7, 2008, 8:18pm UTC](https://www.ruby-forum.com/t/strange-500-error-with-namespace-controller-action-appearing-in-reload-only/155089/3 "2008-12-07T20:18:49Z")

</div>

Putting a ‘/’ before the linked image asset also worked.
