Permalink
Browse files

Fix a programming error.

Assignment and equality are not the same.
  • Loading branch information...
1 parent d04b8ee commit d5376a247f804b331f8157c461c61213e3c1ce35 Andreas Scherer committed Feb 17, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 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

0 comments on commit d5376a2

Please sign in to comment.