From 70a44f5ba390f717fd0180667df13f7f5aa648c8 Mon Sep 17 00:00:00 2001 From: Marcin Kulik Date: Fri, 6 Apr 2012 21:10:59 +0200 Subject: [PATCH] Fix fetching cast data via ajax --- app/controllers/asciicasts_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/asciicasts_controller.rb b/app/controllers/asciicasts_controller.rb index 0f22ffa..d5316cb 100644 --- a/app/controllers/asciicasts_controller.rb +++ b/app/controllers/asciicasts_controller.rb @@ -17,7 +17,7 @@ class AsciicastsController < ApplicationController def show @asciicast = AsciicastDecorator.find(params[:id]) @title = @asciicast.smart_title - respond_with @asciicast + respond_with @asciicast.model end def edit