Skip to content

equivalent/dude_policy_example1

Repository files navigation

README

This is an example application for DudePolicy gem

Screenshot 2022-11-22 at 09 51 38

You can try it out at https://dude-policy-example1.herokuapp.com

UPDATE 2022-11-17 Heroku will no longer be free (source) I'm shutting down the dyno.

login details

admin

u: admin@admin.com p: password

user

u: user@user.com p: password

the website is for education purpouses, please be nice 🙏

Important files

Conf

Models

Policy

Controllers

Views

Business logic

Run on localhost

git clone git@github.com:equivalent/dude_policy_example1.git
cd dude_policy_example1
gem install bundler
bundle install
rails db:migrate
rails db:seed

about Rails

using Ruby on Rails version 6.0.2.2

I use Devise for Authentication (login user in) but DudePolicy is independent => you can use any solution to log in users

generated with

rails  new --skip-bootsnap --skip-turbolinks --skip-javascript --skip-sprockets --skip-action-cable --skip-test --skip-system-test --skip-action-mailer --skip-action-mailbox --skip-action-text  dude_policy_example1
rails g scaffold Article title:string  body:text author_id:integer secret_note:string
rails g scaffold User name:string admin:boolean

rails db:migrate

devise:install

About

example Ruby on Rails app for Dude Policy gem

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published