Skip to content

Completed Sinatra Puppy Form Lab#15

Open
cmhorsey wants to merge 1 commit intolearn-co-students:masterfrom
cmhorsey:test-branch
Open

Completed Sinatra Puppy Form Lab#15
cmhorsey wants to merge 1 commit intolearn-co-students:masterfrom
cmhorsey:test-branch

Conversation

@cmhorsey
Copy link
Copy Markdown

@cmhorsey cmhorsey commented Aug 8, 2024

Implemented a GET request and a POST request to the controller to display data from a user in the view.

Comment thread app.rb
Comment on lines +13 to +15
post '/new' do
erb :display_puppy
end
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

It would be better to use the Puppy class here. You could initialize it with the params, then have access it in the view.

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