Sha256: 2f8ce3428dbd807c43d8c11403ee6e7d278f78b9e147433cb64ed6d355fe8018
Contents?: true
Size: 533 Bytes
Versions: 12
Compression:
Stored size: 533 Bytes
Contents
class TestController < ApplicationController def show @some_articles = [ {:id => 1, :title => "a great article", :updated => Time.now}, {:id => 2, :title => "another great article", :updated => Time.now} ] response.content_type = request.negotiated_type end def feed @some_articles = [ {:id => 1, :title => "a great article", :updated => Time.now}, {:id => 2, :title => "another great article", :updated => Time.now} ] response.content_type = request.negotiated_type end end
Version data entries
12 entries across 11 versions & 2 rubygems