Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/geekq/workflow-rails-sample
Sample Rail application to illustrate the usage of workflow-activerecord gem
https://github.com/geekq/workflow-rails-sample
Last synced: 7 days ago
JSON representation
Sample Rail application to illustrate the usage of workflow-activerecord gem
- Host: GitHub
- URL: https://github.com/geekq/workflow-rails-sample
- Owner: geekq
- License: mit
- Created: 2019-01-08T17:49:55.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2019-06-05T08:28:51.000Z (over 5 years ago)
- Last Synced: 2024-10-19T00:18:22.351Z (3 months ago)
- Language: Ruby
- Homepage:
- Size: 37.1 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# README
This is a sample Rails application to
1. demonstrate the use of these libraries:
* https://github.com/geekq/workflow
* https://github.com/geekq/workflow-activerecord
2. and to test gem dependencies on gem release.
S.also https://github.com/geekq/workflow-activerecord/issues/1## To try it out
Start with an empty [rbenv](https://github.com/rbenv/rbenv) or rvm environment.
git clone [email protected]:geekq/workflow-rails-sample.git
cd workflow-rails-samplegem install bundler
bundle install
bin/rails db:migrate db:seed
bin/rails server## Application created with
```
~/.rbenv/plugins/ruby-build/bin/ruby-build 2.5.1 ~/.rbenv/versions/sample1
~/.rbenv/plugins/ruby-build/bin/ruby-build 2.5.1 ~/.rbenv/versions/sample2
cd ~/projects/ruby
rbenv shell sample1
gem install rails -v '5.2'
rails new workflow-rails-sample
cd workflow-rails-sample
vim .gitignore
vim Gemfile
rbenv local sample2
gem install bundler
bundle install
bin/rails generate scaffold Article \
title:string summary:string content:text workflow_state:string author:string
```