diff options
author | Andreas Scherer <andreas_coder@freenet.de> | 2009-02-17 11:56:18 +0100 |
---|---|---|
committer | Andreas Scherer <andreas_coder@freenet.de> | 2009-02-17 11:56:18 +0100 |
commit | d5376a247f804b331f8157c461c61213e3c1ce35 (patch) | |
tree | 193ef46f2246684a03db9b294a47ded5d7db8f95 /railties/guides | |
parent | d04b8ee53081974d2a1ed71906bc0e3b5571e6ca (diff) | |
download | rails-d5376a247f804b331f8157c461c61213e3c1ce35.tar.gz rails-d5376a247f804b331f8157c461c61213e3c1ce35.tar.bz2 rails-d5376a247f804b331f8157c461c61213e3c1ce35.zip |
Fix a programming error.
Assignment and equality are not the same.
Diffstat (limited to 'railties/guides')
-rw-r--r-- | railties/guides/source/action_controller_overview.textile | 2 |
1 files changed, 1 insertions, 1 deletions
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 |