Why do my links not work?

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.

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

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs