# Link\_to with resource routes in helper file?

**URL:** <https://www.ruby-forum.com/t/link-to-with-resource-routes-in-helper-file/187493>\
**Category:** Rails\
**Created:** [April 24, 2010, 12:27am UTC](https://www.ruby-forum.com/t/link-to-with-resource-routes-in-helper-file/187493 "2010-04-24T00:27:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tim](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/ce73a5/32.png) [@tim](https://www.ruby-forum.com/u/tim)\
**Post date:** [April 24, 2010, 12:27am UTC](https://www.ruby-forum.com/t/link-to-with-resource-routes-in-helper-file/187493/1 "2010-04-24T00:27:30Z")

</div>

Hey all!

Any pointers on doing something like:

link\_to “Comments”, comments\_path

from within a helper file just like you can do from a view?

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![tim](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/ce73a5/32.png) [@tim](https://www.ruby-forum.com/u/tim)\
**Post date:** [April 24, 2010, 1:06am UTC](https://www.ruby-forum.com/t/link-to-with-resource-routes-in-helper-file/187493/2 "2010-04-24T01:06:42Z")

</div>

sorry … under rspec that is with rails 2.3.5

---

<div class="post-metadata">

**Author:** ![tim](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/ce73a5/32.png) [@tim](https://www.ruby-forum.com/u/tim)\
**Post date:** [April 24, 2010, 2:34am UTC](https://www.ruby-forum.com/t/link-to-with-resource-routes-in-helper-file/187493/3 "2010-04-24T02:34:33Z")

</div>

sorry, my bad … started working on a new app and it was including  
some bad juju:)
