# Link\_to

**URL:** <https://www.ruby-forum.com/t/link-to/147030>\
**Category:** Rails\
**Created:** [August 27, 2008, 7:36pm UTC](https://www.ruby-forum.com/t/link-to/147030 "2008-08-27T19:36:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![snantz](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/c2a13f/32.png) [@snantz](https://www.ruby-forum.com/u/snantz)\
**Post date:** [August 27, 2008, 7:36pm UTC](https://www.ruby-forum.com/t/link-to/147030/1 "2008-08-27T19:36:11Z")

</div>

I have this general menu that appears on every page so you can navigate  
to other pages. On a couple of pages I need to add some code that checks  
to see if certain text\_fields are filled in or not, if they are and they  
are not saved I need to prompt the user to save them. My issue is that I  
am not find anything options for the link\_to helper that would allow  
something like this. I was thinking about having link\_to\_if along with  
some javaScript to check the value of that field to first make usre that  
it is filled out. Is there a way to do that with a link\_ot\_if or does  
anyone have a better way? Thanks,

-S
