stalniy / rails-cancan-api-example

Simple Rails 5 REST API with cancan
12 stars 7 forks source link

Add activeadmin #1

Closed JonathanFrias closed 6 years ago

JonathanFrias commented 6 years ago

Install steps

Las tres roles que tenemos:

El diseno es dos classes de ability para cancan. Uno para API, y el otro para activeadmin. Por eso:

  1. no hay conflicto con las reglas,
  2. todavia usa las mismas tres roles.
  3. No se va romper el API que está.

el formulario aquí es muy sencillo.

stalniy commented 6 years ago

Thank you for the effort! I need to look closer to this in order to merge.

But I’m for sure don’t want to use postgre as this is additional dependency which needs to be installed in order to follow article steps. That’s why I used sqlite3

JonathanFrias commented 6 years ago

Hey, I doubt this PR is what you want. It was a programming exercise, but if you want to use it, feel free!