1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Fix a programming error.

Assignment and equality are not the same.
This commit is contained in:
Andreas Scherer 2009-02-17 11:56:18 +01:00
parent d04b8ee530
commit d5376a247f

View file

@ -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