18 Apr '12, 9pm

#213 Calendars - RailsCasts

<div id="calendar"> <h2 id="month"> <%= link_to "<", :month => (@date.beginning_of_month-1).strftime("%Y-%m") %> <%=h @date.strftime("%B %Y") %> <%= link_to ">", :month => (@date.end_of_month+1).strftime("%Y-%m") %> </h2> <% calendar_for @articles, :year => @date.year, :month => @date.month do |calendar| %> <%= calendar.head('Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday') %> <% calendar.day(:day_method => :published_on) do |date, articles| %> <%= date.day %> <ul> <% for article in articles %> <li><%= link_to h(article.name), article %></li> <% end %> </ul> <% end %> <% end %> </div>

Full article: http://railscasts.com/episodes/213-calendars?autoplay=true

Tweets

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...

Railscasts - Sortable Table Columns:

railscasts.com 18 Apr '12, 10pm

class ProductsController < ApplicationController helper_method :sort_column, :sort_direction def index @products = Product...

カード決済サービスStripeの解説記事。 / “#288 Billing with Stri...

railscasts.com 18 Apr '12, 10pm

<%= form_for @subscription do |f| %> <% if @subscription.errors.any? %> <div class="error_messages"> <h2><%= pluralize(@su...