18 Apr '12, 10pm

Railscasts - Sortable Table Columns:

class ProductsController < ApplicationController helper_method :sort_column, :sort_direction def index @products = Product.order(sort_column + " " + sort_direction) end # ... private def sort_column Product.column_names.include?(params[:sort]) ? params[:sort] : "name" end def sort_direction %w[asc desc].include?(params[:direction]) ? params[:direction] : "asc" end end

Full article: http://railscasts.com/episodes/228-sortable-table-columns

Tweets

#213 Calendars - RailsCasts

railscasts.com 18 Apr '12, 9pm

<div id="calendar"> <h2 id="month"> <%= link_to "<", :month => (@date.beginning_of_month-1).strftime("%Y-%m") %> <%=h @dat...

Watching OmniAuth Part 1 on RailsCasts via @rai...

railscasts.com 19 Apr '12, 6pm

<% title "Sign In" %> <% if @authentications %> <% unless @authentications.empty? %> <p><strong>You can sign in to this ac...

Wohoo! Got the Login with Twitter to finally wo...

railscasts.com 19 Apr '12, 6pm

Some things have changed since OmniAuth version 1.0 was released. Each provider is now a separate gem that should be inclu...