New Discussion

Notifications

You’re not receiving notifications from this thread.

Creating New Blog Posts Discussion

1
General

Hi!
I don't understand why we must instantiate a BlogPost object in the new function, if we are also doing so in the create function.
It is also not clear to me how did we map the <%= form.button %> in new.html.erb to the blog_posts#create action.

Thank you for the guides!

Join the discussion
Create an account Log in

Learning Ruby on Rails? Join our newsletter.

We won't send you spam. Unsubscribe at any time.