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 Introduction to Ruby on Rails 7!
You have completed Introduction to Ruby on Rails 7!
Preview
Create a dedicated pricing page, then implement logic that shows or hides features based on user subscription status. You’ll learn how to manage different plan tiers in a user-friendly way.
This video doesn't have any notes.
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
Just to show you how to add
a new page in Ruby on Rails.
0:00
I know when I started out I
didn't know how to do it and
0:02
it's really important
to know how to do it.
0:04
So let's do this, so
0:06
the first thing that we're going to do is
add a new method to our home controller.
0:08
Now the reason for this is that you need
a new method in the home controller.
0:13
Every page in Ruby on Rails
needs a method generally.
0:17
So we need to add def pricing and
then an end.
0:21
Because every method ends with an end.
0:25
So we save that file and now we have
a method in the home controller.
0:28
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