title: Breadcrumbs in Ruby on Rails
body: <p>I'm slightly insecure about my breadcrumb solution. Names and links are defined in each controller action:</p>
  
  <pre><code>&lt;a href="http://localhost:3000/"&gt;Home&lt;/a&gt;
  &lt;% if defined? @l1_link %&gt;
    &gt; &lt;a href="&lt;%= @l1_link%&gt;"&gt;&lt;%= @l1_name %&gt;&lt;/a&gt;
    &lt;% if defined? @l2_link %&gt;
      &gt; &lt;a href="&lt;%= @l2_link%&gt;"&gt;&lt;%= @l2_name %&gt;&lt;/a&gt;
    &lt;% end %&gt;
  &lt;% end %&gt;
  </code></pre>
  
  <p>This way I can use:</p>
  
  <pre><code>@l1_link = user_path()
  </code></pre>
  
  <p>Question: As I am not that smart - could this kind of system lead to desaster somewhere down the road? Is this (grossly) inefficient?</p>