Displaying 1 result from an estimated 1 matches for "show_lookup_link".
Did you mean:
  show_lookup_links
  
2006 Jun 07
6
Links on the left hand side - are components necessary?
...ted a layout called "main" (main.rhtml)  under 
view/layouts, and included >layout "main"< in pretty all of my 
controllers.
main.rhtml has, amongst all the other HTML stuff:
<%= render_component :controller=> ''dli/extras'', :action=> 
''show_lookup_links''%>
This is the component to display the links:
class Dli::ExtrasController < ApplicationController
  uses_component_template_root
  Link=Struct.new(:name,:controller,:action)
  def show_lookup_links
    @links=[]
    @links << Link.new("Channels", "/lookup/ch...