Tag: class

  • Quick and dirty tabs on Ruby on Rails

    For my Ruby on Rails pet project Is it Science Fiction? I’ve reached that point when I wanted to show tabs. You know, for the menu, on top of the page. I quickly wrote something like: <ul class=”tabs”> <li><%= link_to ‘Home’, root_url %></li> <li><%= link_to ‘Recommend’, new_item_url %></li> <li><%= link_to ‘Ranking’, items_url %></li> <% if…