![]() | Changes in Chapter 9. Optimizing Performance |
|
16 Apr 2012, 10:20
Romeo Giezendanner (7 posts) |
action in file: artflow/performance/app/controllers/subscriptions_controller.rb 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 <h1>Add Subscription</h1> <%= currently_at 'Creations' %> <%= render 'form' %> |
|
17 Apr 2012, 02:58
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
yves dufour (11 posts) |
error in page 224 : |
| You must be logged in to comment |

