[RUBY] Make a site template easily with Rails

Summary

I want to be able to create a lot of sites, but what should I do? The question came up. So, I looked at various tutorial sites, but the function called scaffold used in Rails seemed to be useful, so I will try to implement it.

Project launch

Introducing Ruby and Rails

First, set up ruby ​​and Rails on your PC. It was carried out with reference to the following article. (Mac)

[Complete version] All the steps to build a Rails environment on Mac Refer to the above article and perform a general installation.

Looking back, I think it's best to refer to the articles posted in the past year as much as possible. If it is earlier than that, there is a possibility that it will not work well even if the version upgrade of os itself is straddled.

Run Rails project

$ rails new scaffold_sample
$ cd scaffold_sample
$ rails generate scaffold user name:string age:integer

If you input like this, you can see all the views and controllers with user models.

You can also operate the screen, so what should I do? May be pretty easy to understand.

From now on, I'll do various things so that I can make such a site. Hello Work Job Search Hello Work Summary Site Hello Work Search Site

Recommended Posts

Make a site template easily with Rails
Let's make a search function with Rails (ransack)
Create an EC site with Rails 5 ⑨ ~ Create a cart function ~
[Rails] Make a breadcrumb trail
Make a simple CRUD with SpringBoot + JPA + Thymeleaf ⑤ ~ Template standardization ~
Make a digging maze with Ruby2D
[Rails] Make pagination compatible with Ajax
Make a slideshow tool with JavaFX
[Rails] Creating a new project with rails new
Make a Christmas tree with swift
Make a garbage reminder with line-bot-sdk-java
Make a list map with LazyMap
Make a typing game with ruby
I tried to make a group function (bulletin board) with Rails
Let's make a Christmas card with Processing!
Make a family todo list with Sinatra
[Rails6] Create a new app with Rails [Beginner]
Easily make troublesome regular expressions with Rubular
Make a family todo list with Sinatra
Let's make a smart home with Ruby!
[docker] [nginx] Make a simple ALB with nginx
[rails] How to create a partial template
Let's make an error screen with Rails
Template: Build a Ruby / Rails development environment with a Docker container (Ubuntu version)
Template: Build a Ruby / Rails development environment with a Docker container (Mac version)
[Memo] Create a CentOS 8 environment easily with Docker
[Rails] rails new to create a database with PostgreSQL
Let's make a shopping site using stripe! (Purchase)
Create a team chat with Rails Action Cable
Upload multiple images easily with rails rails + carrierwave + cloudinary
How to easily create a pull-down in Rails
Rails6 I want to make an array of values with a check box
[Rails] How to easily implement numbers with pull-down
Make System.out a Mock with Spock Test Framework
Create an EC site with Rails5 ⑤ ~ Customer model ~
I made a LINE bot with Rails + heroku
How to make a follow function in Rails
Create an EC site with Rails 5 ⑩ ~ Create an order function ~
I made a portfolio with Ruby On Rails
Run Scala with GraalVM & make it a native image
How to make batch processing with Rails + Heroku configuration
How to make a factory with a model with polymorphic association
Create an EC site with Rails5 ⑦ ~ Address, Genre model ~
How to delete a new_record object built with Rails
Display a confirmation screen before registering a record with rails
How to make an almost static page with rails
Create a widget template for iOS14 with Intent Configuration.
Let's make a LINE Bot with Ruby + Sinatra --Part 2
Easily build a Vue.js environment with Docker + Vue CLI
Create an EC site with Rails5 ④ ~ Header and footer ~
How to manually generate a JWT with Rails Knock
[Java basics] Let's make a triangle with a for statement
[Personal application work memo] Make a calendar with simple_calendar
Create an EC site with Rails5 ⑥ ~ seed data input ~
[Beginner] I stumbled upon launching a project with Rails6
Let's make a LINE Bot with Ruby + Sinatra --Part 1
How to get started with creating a Rails app
[Rails 6] RuntimeError with $ rails s
Handle devise with Rails
[Rails] Learning with Rails tutorial
Make a reflection utility ③