Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nest Form For Pirates and Ships #15

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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