This is a Rails starter app. Just clone, fix app name and start to use it. This app will save you some time setting up new rails application.
- Rails 6.0.2
- Webpacker install and ready to use
- Twitter Bootstrap 4.4 (jquery, popper.js)
- Fontawesome latest
- Controller concerns
- ActionText and ActionStorage ready
- Clone
- Change app name (use global find in your project for
RailsScratchApp
and replace it by your app name) - Run migrations, yarn upgrade and bundle install
- Start with
foreman
git clone
sudo mv -r RailsScratchApp YourAppName
cd YourAppName
# make global search for RailsScratchApp and replace it by YourAppName
# then:
bundle install
yarn install --check-files
rails db:migrate
foreman start
Checkout branch examples/concerns
and PostsController
class PostsController < ApplicationController
include DryController
include Response
private
def resource_params
params.require(:post).permit(:id, :title ,:body)
end
end
V. Bondaruk, RubyDroids.com