Skip to content

Commit b1490f0

Browse files
committed
Code improvement
1 parent c6d32ca commit b1490f0

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

app/views/orders/index.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<div class="center jumbotron">
22
<h2>
3-
<% if params[:search].nil? || params[:search].empty? %>
3+
<% if params[:search].blank? %>
44
All Orders (<%= @orders.count %>)
55
<%else %>
66
Found => [

app/views/shared/_products.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ class="form-control" type="text"/> </div> <button type="submit" class="btn btn-p
77

88
<div class="center jumbotron">
99
<h2>
10-
<% if params[:search].nil? || params[:search].empty? %>
10+
<% if params[:search].blank? %>
1111
All Orders (<%= @products.count %>)
1212
<%else %>
1313
Found => [

app/views/users/index.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<% provide(:title, 'All users') %>
22
<div class="center jumbotron">
33
<h2>
4-
<% if params[:search].nil? || params[:search].empty? %>
4+
<% if params[:search].blank? %>
55
All users (<%= @users.count %>)
66
<%else %>
77
Found => [

0 commit comments

Comments
 (0)