[RAILS] Don't forget to summarize the features and points of the flea market apps

Introduction

The flea market apps I was creating have settled down, so I'll summarize them. Completely for myself.

Implemented function

User management

Uses a gem called devise. Write test code using RSpec. Describe test data in FactoryBot with Faker. I used a Gem called Gimei and a Japanese version of Faker. Regular expressions. Error Error handling is displayed using the render method.

Product listing function

Introduced Active Hash. Introducing ActiveStorage so that images can be saved. Test code description using Faker's Japanese support. Calculate profits etc. in real time on the browser using JS.

List of products

Use the exists? Method in the conditional statement of the if statement to branch the process when there is no data in the table.

Product detail display function

Display ActiveHash name (@ variable name.model name.name name)

Product deletion function

Collect the same processing with before_action.

Product editing function

Put together in the same form as the new action.

Product purchase function

Use the merge method to get the combination of product and purchaser from the parameters. Introduction of credit card payment using API introduction (PAY.JP). Response token with JS. merge token. Show sold out as purchased. Conditional branching using <% if @ item.purchase%>.

Recommended Posts

Don't forget to summarize the features and points of the flea market apps
I tried to summarize the key points of gRPC design and development
I tried to summarize the basics of kotlin and java
I tried to summarize the methods of Java String and StringBuilder
Retrospective record of making flea market apps
Implementation of digit grouping in flea market apps
I tried to summarize the state transition of docker
Convert the array of errors.full_messages to characters and output
[For Swift beginners] I tried to summarize the messy layout cycle of ViewController and View
Command to check the number and status of Java threads
I tried to summarize the basic grammar of Ruby briefly
Let's summarize how to extend the expiration date of Rails
I tried to summarize personally useful apps and development tools (development tools)
I tried to summarize personally useful apps and development tools (Apps)
How to check the extension and size of uploaded files
How to check the database of apps deployed on Heroku
[Java] Various summaries attached to the heads of classes and members
[Rails] How to get the URL of the transition source and redirect
[Swift5] How to get an array and the complement of arrays
How to set the IP address and host name of CentOS8
Method to add the number of years and get the end of the month
[Rails] Read the RSS of the site and return the contents to the front
From fledgling Java (3 years) to Node.js (4 years). And the impression of returning to Java
[Rails] I tried to summarize the passion and functions of the beginners who created the share house search site!
I don't really understand the difference between swift Error and NSError, so I tried to summarize it myself.