Skip to content

Conversation

Lsimmons98
Copy link

Used a nested form to instantiate pirates and ships and display them on the DOM.

Copy link

@stephenmckeon stephenmckeon left a comment

Choose a reason for hiding this comment

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

Great work, even with some janky spacing.

Comment on lines +16 to +24
@pirate = Pirate.new(params["pirate"])

params[:pirate][:ships].each do |details|
Ship.new(details)
end

@ships = Ship.all

erb :"pirates/show"

Choose a reason for hiding this comment

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

I thought we were passed the spacing issues???

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