From d5376a247f804b331f8157c461c61213e3c1ce35 Mon Sep 17 00:00:00 2001 From: Andreas Scherer Date: Tue, 17 Feb 2009 11:56:18 +0100 Subject: Fix a programming error. Assignment and equality are not the same. --- railties/guides/source/action_controller_overview.textile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'railties/guides') diff --git a/railties/guides/source/action_controller_overview.textile b/railties/guides/source/action_controller_overview.textile index 4c21d2cda6..f9b7a3fe14 100644 --- a/railties/guides/source/action_controller_overview.textile +++ b/railties/guides/source/action_controller_overview.textile @@ -59,7 +59,7 @@ class ClientsController < ActionController::Base # this action would look like this in order to list activated # clients: /clients?status=activated def index - if params[:status] = "activated" + if params[:status] == "activated" @clients = Client.activated else @clients = Client.unactivated -- cgit v1.2.3