- Bootstrap for Rails
- Syed Fazle Rahman
- 253字
- 2021-07-23 20:35:46
Analyzing folder structure of a Rails application
Let's navigate to the TODO
folder to check how our application's folder structure looks like:

Let me explain to you some of the important folders here:
- The first one is the
app
folder, which we will be focusing on the most throughout this book. All our application's content will be present inside this folder. - The
assets
folder inside theapp
folder is the location to store all the static files like JavaScript, CSS, and Images. You can take a sneak peek inside them to look at the various files. - The
controllers
folder handles various requests and responses of the browser. - The
helpers
folder contains various helper methods both for theviews
andcontrollers
. - The next folder
mailers
, contains all the necessary files to send an e-mail. - The
models
folder contains files that interact with the database. - Finally, we have the
views
folder, which contains all the.erb
files that will be complied to HTML files.
So, let's start the Rails server and check out our application on the browser:
- Navigate to the
TODO
folder in the terminal and then type the following command to start a server:rails server
You can also use the following command:
rails s
- You will see that the server is deployed under the port
3000
. So, type the following URL to view the application:http://localhost:3000
.You can also use the following URL:
http://0.0.0.0:3000
. - If your application is properly set up, you should see the default page of Rails in the browser:
推薦閱讀
- Reporting with Visual Studio and Crystal Reports
- Node.js Design Patterns
- Java 開發從入門到精通(第2版)
- Apache Spark 2.x Machine Learning Cookbook
- HoloLens Beginner's Guide
- WordPress Plugin Development Cookbook(Second Edition)
- Apex Design Patterns
- HTML5+CSS3網頁設計
- HTML5入門經典
- 微信小程序入門指南
- C#面向對象程序設計(第2版)
- 網頁設計與制作
- Java基礎案例教程(第2版)
- R Data Visualization Cookbook
- C/C++程序設計教程:面向過程分冊