CREATE YOUR FIRST RAILS APPLICATION
1. Create the Rails Application
$ cd desktop
$ rails new swiftrubydemo
2. Drag and Drop "swiftrubydemo" folder into Sublime Text Editor
Browse around look at some of the files that are already provided for you!
3. Important files and folders to focus on as a Beginner
Gemfile
Gems and Gemfiles are prepackaged programs, files and folders that give your application cool functionality and flexibility. For example, when we want to add a payment processor, instead of writing extremely complex and difficult code, we can use convenient tools on the internet and access them through their respective gems. A popular payment processor is Stripe. There are a number of ways to get a Stripe Payment Processor onto your website, but a fast and easy way to get it set up is through the Stripe Gem. We will add Stripe to our Rails Application later in these tutorials.
Apps ---> Views
The views section of your application is where you will be creating all of your HTML pages that users will eventually navigate to and see. You will be writing a large amount of your code in this section of your rails application. The views are commonly associated with your "Frontend" structure.
Apps ---> Assets ---> Stylesheets
The Assets folder contains a few important folders, like images and javascript. However for now the most important folder is going to be the stylesheets folder. This is how you will add CSS to your application. CSS is the aspect of coding that is heavily involved with design and creativity, the use of shapes, colors and images to bring your website to life of your application is where you will be creating all of your HTML pages that users will eventually navigate to and see. CSS and stylesheets are associated with "Frontend" design.
Apps ---> Controllers
It will take a little more time for you to fully grasp how controllers work. The most important aspect of a controller is that it tells certain parts of your website how to move from point A to point B to point C. For example, when we set up the Stripe Payment Processor, a user
$ cd desktop
$ rails new swiftrubydemo
2. Drag and Drop "swiftrubydemo" folder into Sublime Text Editor
Browse around look at some of the files that are already provided for you!
3. Important files and folders to focus on as a Beginner
Gemfile
Gems and Gemfiles are prepackaged programs, files and folders that give your application cool functionality and flexibility. For example, when we want to add a payment processor, instead of writing extremely complex and difficult code, we can use convenient tools on the internet and access them through their respective gems. A popular payment processor is Stripe. There are a number of ways to get a Stripe Payment Processor onto your website, but a fast and easy way to get it set up is through the Stripe Gem. We will add Stripe to our Rails Application later in these tutorials.
Apps ---> Views
The views section of your application is where you will be creating all of your HTML pages that users will eventually navigate to and see. You will be writing a large amount of your code in this section of your rails application. The views are commonly associated with your "Frontend" structure.
Apps ---> Assets ---> Stylesheets
The Assets folder contains a few important folders, like images and javascript. However for now the most important folder is going to be the stylesheets folder. This is how you will add CSS to your application. CSS is the aspect of coding that is heavily involved with design and creativity, the use of shapes, colors and images to bring your website to life of your application is where you will be creating all of your HTML pages that users will eventually navigate to and see. CSS and stylesheets are associated with "Frontend" design.
Apps ---> Controllers
It will take a little more time for you to fully grasp how controllers work. The most important aspect of a controller is that it tells certain parts of your website how to move from point A to point B to point C. For example, when we set up the Stripe Payment Processor, a user