Skip to content

Commit

Permalink
Fix a programming error.
Browse files Browse the repository at this point in the history
Assignment and equality are not the same.
  • Loading branch information
Andreas Scherer committed Feb 17, 2009
1 parent d04b8ee commit d5376a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion railties/guides/source/action_controller_overview.textile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d5376a2

Please sign in to comment.