# Automatic :format suffixing in helper methods?

**URL:** <https://www.ruby-forum.com/t/automatic-format-suffixing-in-helper-methods/170341>\
**Category:** Rails\
**Created:** [June 16, 2009, 10:34am UTC](https://www.ruby-forum.com/t/automatic-format-suffixing-in-helper-methods/170341 "2009-06-16T10:34:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kazuyoshi\_tlacaelel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/48db29/32.png) [@kazuyoshi\_tlacaelel](https://www.ruby-forum.com/u/kazuyoshi_tlacaelel)\
**Post date:** [June 16, 2009, 10:34am UTC](https://www.ruby-forum.com/t/automatic-format-suffixing-in-helper-methods/170341/1 "2009-06-16T10:34:46Z")

</div>

Is there a way to automatically prefix a format in all helper methods?  
like: link\_to ?

So if I had an xml all links would probably be /users/1  
and that is fine but what happens if I have a resource for mobiles  
like /users/1.mb and want all the links in it to have a “.mb” suffixed  
to it?

does anybody know if there is a patch or plugin that lets you keep  
these two features?
