On 3 May 2008, at 17:52, Sean Six wrote:
>
> I have this file located in /app/views/layouts
>
> <html>
> <head>
> <title><%= @title %></title>
> </head>
> <body>
> <% link_to("Home", { :action => "index" })
%> |
> <% link_to("About Us", { :action => "about" })
%> |
> <% link_to("Help", { :action => "help" })
%>
> <%= @content_for_layout %>
> </body>
> </html>
>
> 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
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---