16 Apr 2012, 10:20
Romeo_pragsmall

Romeo Giezendanner (7 posts)

action in file: artflow/performance/app/controllers/subscriptions_controller.rb
don’t exist:

def new
  @subscription = Subscription.new
end

def create
  @subscription = Subscription.new(params[:subscription])
  if @subscription.save
    flash[:notice] = "Subscription added!" 
    redirect_to action: 'new'
  else
    flash.now[:alert] = "Could not save subscription!" 
    render action: 'new'
  end
end

file: artflow/performance/app/views/subscriptions/new.html.erb
don’t exist:

<h1>Add Subscription</h1>

<%= currently_at 'Creations' %>

<%= render 'form' %>

17 Apr 2012, 02:58
Photo1_pragsmall

Bruce Williams (14 posts)

Thanks Romeo; I’ve noticed you’re also capturing (at least some of) these as errata too—thanks! I’ll be reviewing them this week.

18 May 2012, 06:27
Generic-user-small

yves dufour (11 posts)

error in page 224 :
To turn on page caching, we simply open up our controller and add one line above our method definitions.
class CreationsController < ApplicationController cached_page :index # The rest of the controller... end
should be :
caches_page :index

  You must be logged in to comment