Justin Collins wrote:

> James Nykiel wrote:
>>>>
>>> $0 is the name of the "started" file (the one that was started from 
>> Thanks for the hint, got it working!
>>
>> %>
>>
>>   
> 
> I think the more typical way to do this is more like
> 
> <%
> 
> fname = File.basename ENV['SCRIPT_FILENAME']
> 
> if fname == 'index.rhtml' %>
>    Home &nbsp;&nbsp;::&nbsp;&nbsp;
> <% else %>
>    <a href="index.rhtml" title="Home">Home</a>&nbsp;&nbsp;::&nbsp;&nbsp;
> <% end %>
> 
> 
> -Justin

Justin,

Thanks for the help with this, do you know if or how I can combine the 
following:

## menu.rhtml

<% fname = File.basename ENV['SCRIPT_FILENAME']
if fname == 'index.rhtml' %>
Home &nbsp;&nbsp;::&nbsp;&nbsp;
<% else %>
<a href="index.rhtml" title="Home">Home</a> &nbsp;&nbsp;::&nbsp;&nbsp;
<% end %>

<% fname = File.basename ENV['SCRIPT_FILENAME']
if fname == 'contact.rhtml' %>
Contact &nbsp;&nbsp;::&nbsp;&nbsp;
<% else %>
<a href="contact.rhtml" title="Contact">Contact</a> 
&nbsp;&nbsp;::&nbsp;&nbsp;
<% end %>

-- 
Posted via http://www.ruby-forum.com/.