Web Development  >>  Ruby On Rails

Railscasts Week 10

Language : English Quality : High Has Audio : true Source : showmedo Media : Flash
Let Ryan Bates take you through a growing series of great Rails tips.

Tags: Ruby On Rails, Ruby, Screencast, Showmedo, Web Development,     [SUGGEST  A  TAG]

Resources referenced in this screencast
  • Ruby on Rails
  • in_groups_of

    Have you ever wanted to visually line up items in rows and columns? The in_groups_of method makes this a cinch. Just watch out for the gotcha.

    group_by Month

    Learn how to use the very useful group_by method to group an array by anything you want! In this episode I group an array of tasks by month then sort it properly.

    Pretty Page Title

    If you are like me, you avoid creating page titles because it is kind of a pain. But in this episode I will show you a clean way to add titles to your pages.


    Articles Realted to this Topic

    [SUGGEST  A  ARTICLE]
    Easy Dynamic Page Titles in Rails
    While even I get lazy about it sometimes, it is important to try to give each page on your site a unique page title. This makes them easy to bookmark and easy for Google to index them. So why this is an issue in Rails? Because layouts are great way to keep your application elegant and stick to the DRY principle
    New in Rails: Enumerable#group_by and Array#in_groups_of
    Enumerable#group_by is for collecting an enumerable into sets, grouped by the result of a block. Useful, for example, for grouping records by date.