# Why do my links not work?

**URL:** <https://www.ruby-forum.com/t/why-do-my-links-not-work/136566>\
**Category:** Rails\
**Created:** [May 3, 2008, 6:52pm UTC](https://www.ruby-forum.com/t/why-do-my-links-not-work/136566 "2008-05-03T18:52:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![df-sean](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/f07891/32.png) [@df-sean](https://www.ruby-forum.com/u/df-sean)\
**Post date:** [May 3, 2008, 6:52pm UTC](https://www.ruby-forum.com/t/why-do-my-links-not-work/136566/1 "2008-05-03T18:52:58Z")

</div>

I have this file located in /app/views/layouts

 \<%= @title %\> \<% link\_to("Home", { :action =\> "index" }) %\> | \<% link\_to("About Us", { :action =\> "about" }) %\> | \<% link\_to("Help", { :action =\> "help" }) %\> \<%= @content\_for\_layout %\>

The title function works, but the three links that should appear at the  
top of my pages do not come up. I only get two vertical lines.

---

<div class="post-metadata">

**Author:** ![df-sean](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/f07891/32.png) [@df-sean](https://www.ruby-forum.com/u/df-sean)\
**Post date:** [May 3, 2008, 7:17pm UTC](https://www.ruby-forum.com/t/why-do-my-links-not-work/136566/2 "2008-05-03T19:17:11Z")

</div>

On 3 May 2008, at 17:52, Sean S. wrote:

> \<% link\_to(“Help”, { :action =\> “help” }) %\>  
> \<%= @content\_for\_layout %\>
> 
> The title function works, but the three links that should appear at  
> the  
> top of my pages do not come up. I only get two vertical lines.

You need to use \<%= instead of \<%

Fred
