Skip to content

Conversation

yuriyivanenko
Copy link

All tests pass


def initialize(params)
# puts params[:name]

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# puts params[:name]

Comment on lines +13 to +23
<% if index == 0 %>
<h2>Display your first ship here</h2>
<p>Name: <%= ship.name %></p>
<p>Booty: <%= ship.booty %></p>
<p>Type: <%= ship.type %></p>
<% elsif index == 1 %>
<h2>Display your second ship here</h2>
<p>Name: <%= ship.name %></p>
<p>Booty: <%= ship.booty %></p>
<p>Type: <%= ship.type %></p>
<% end %>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<% if index == 0 %>
<h2>Display your first ship here</h2>
<p>Name: <%= ship.name %></p>
<p>Booty: <%= ship.booty %></p>
<p>Type: <%= ship.type %></p>
<% elsif index == 1 %>
<h2>Display your second ship here</h2>
<p>Name: <%= ship.name %></p>
<p>Booty: <%= ship.booty %></p>
<p>Type: <%= ship.type %></p>
<% end %>
<h2>Display your <%= index == 0 ? "first" : "second" %> ship here</h2>
<p>Name: <%= ship.name %></p>
<p>Booty: <%= ship.booty %></p>
<p>Type: <%= ship.type %></p>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants