Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
shotengai
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open-source
shotengai
Commits
604f872e
Commit
604f872e
authored
Aug 31, 2017
by
ivan Lan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update README about migration generator
parent
8b6e90da
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
5 deletions
+10
-5
README.md
README.md
+10
-5
No files found.
README.md
View file @
604f872e
...
...
@@ -21,10 +21,15 @@ Or install it yourself as:
$ gem install shotengai
## Rails Generators
#Model Generator:
# Migration Generator
```
shell
$
rails g shotengai:migrations
```
# Model Generator:
```
ruby
# options:
# --produt custom your own product class
# --produ
c
t custom your own product class
# --order custom your own order class
```
For example:
...
...
@@ -38,7 +43,7 @@ For example:
create app/models/my_order.rb
create app/models/my_catalog.rb
#Controller & Routes Generator:
#
Controller & Routes Generator:
```
ruby
# attr:
# role ( merchant | customer )
...
...
@@ -61,13 +66,13 @@ This will create serveral controller classes inherited from merchant product and
content...
end
#Views Generator:
#
Views Generator:
```
shell
$
rails g shotengai:views
-f
```
This will copy shotengai example views to your application under 'app/views/shotengai/'.
#Spec Generator:
#
Spec Generator:
```
shell
$
rails g shotengai:spec
--customer
User
--merchant
Merchant
--product
MyProduct
--order
Myorder
```
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment