Skip to content

Commit 645bf4c

Browse files
committed
readme
1 parent c789b73 commit 645bf4c

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

readme.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,14 @@ Note, you will no longer be able to run the generator scripts or the simple serv
252252

253253
Homework:
254254

255-
People like to feel welcomed when they visit a new web page, but they don't like random `{}` characters. Write some logic that if `@request.query['first_name'] && @request.query['first_name'].empty?` then don't show the query hash, otherwise show a welcome message that says their name, for example "Hello Richard".
255+
People like to feel welcomed when they visit a new web page, but they don't like random `{}` characters. Write some logic that if `@request.query['first_name'] && @request.query['first_name'].empty?` then don't show the query hash, otherwise show a welcome message that says their name, for example "Hello Richard". For example you could add this:
256+
257+
258+
<% if @request.query['first_name'] && [email protected]['first_name'].empty? %>
259+
Hello there <%= @request.query['first_name'] %>
260+
<% else %>
261+
Enter thy name
262+
<% end %>
256263

257264

258265
In ruby only `nil` and `false` will evaluate as false see the data in `boolean_logic_cheatsheet.rb` in this project

0 commit comments

Comments
 (0)