Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Well done!
You have completed Rails 8 Course - Beginner to Intermediate!
You have completed Rails 8 Course - Beginner to Intermediate!
Preview
This video provides a detailed overview of how Rails manages posts through its views, routes, controllers, and partials—explaining the dynamic rendering of Ruby code and setting the stage for adding user authentication.
Resources
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
how it all works, because I think I need
to give you a good understanding if you
0:00
haven't got one already.
0:02
If you have got one,
this would be a good refresher.
0:03
So it's gonna be pretty basic.
0:05
So if we go to App, Views, Posts, Index,
index.html.erb, this is the main page.
0:06
This is this page right here.
0:12
You know like HTML, this is that page, but
0:14
it has Ruby code in it
because it's a .html.erb.
0:16
Now the reason that we're on this
page when we start up the server and
0:19
we go to the URL, like even when we go
to this page, that's still this page.
0:22
Slash posts on this page and
the root URL is the same thing.
0:26
So the reason that we go to this
page when we start up server and
0:29
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up