<% if controller = @admin then %>
should be
<% if controller == @admin then %>
On Thursday, July 06, 2006, at 8:50 PM, Jon Mr wrote:>hello all,
>
>here''s the code from my layout
>
><% if controller = @admin then %>
>
> <li class="selected"><%= link_to
''Home'', :controller => ''admin''
>%></li>
>
><% else %>
>
> <li><%= link_to ''Home'', :controller =>
''admin'' %></li>
>
><% end %>
>
>if anyone knows why this wouldn''t work, help would be very
appreciated.
>thanks..
>
>Jon.
>
>--
>Posted via http://www.ruby-forum.com/.
>_______________________________________________
>Rails mailing list
>Rails@lists.rubyonrails.org
>http://lists.rubyonrails.org/mailman/listinfo/rails
Mikkel Bruun
www.strongside.dk - Football Portal(DK)
ting.minline.dk - Buy Old Stuff!(DK)
--
Posted with http://DevLists.com. Sign up and save your mailbox.