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:
parent
d04b8ee530
commit
d5376a247f
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue