From the course: Adding Stripe Payments to Your Ruby on Rails Application

Unlock this course with a free trial

Join today to access over 22,400 courses taught by industry experts.

Adding products

Adding products

- [Instructor] We'll start out by creating a new rails application. I'm going to name mine store. And once this is finished generating, we can cd into the directory by saying cd store. And here we can generate our products. In this course our example products are going to be pretty simple. We're going to generate a scaffold for them. So we'll create the models and the views for our products. And each one of those products is going to have a name, a description, and it's going to have some secret content that only paid subscribers have the access to. At the end of this course you'll be able to take the secret column and take that out and replace it with the content that you want to offer to your subscribers, such as maybe course lessons, or notes, or features, or any of those other things. But we are going to use the simple secret column in order to have some protected content in order to offer to our users to make sure that our example works correctly. If we hit Enter to run this…

Contents