Ruby on Rails Friday, May 29, 2015

I'd also recommend looking the catalog of gems on this website (or others).

https://www.ruby-toolbox.com

If you don't you might be facepalming yourself  few times.

On Friday, May 29, 2015 at 9:06:58 AM UTC-4, Cody Skidmore wrote:
You should probably use Devise & Cancan.


They're pretty easy to use and very powerful. 

On Thursday, May 28, 2015 at 2:26:39 PM UTC-4, kernelre...@gmail.com wrote:
Hello,

I'm currently try to develop my first web application in Ruby on Rails for
myself.

I made a user model with a "role" integer in the database to determine if a user
is:

- Guest
- Editor
- Administrator

I'm using an enum in the model to manage roles availables.

I don't know if it is a good choise ?

Like a CMS, my application manage articles.

- A Guest user can see some private articles and
  post comments like in a blog.
- An editor is like a  guest user but can write articles.
- Administrator can write article and can manage users, attribute roles...

I would like an admin panel only for admin users.
I thought to implement that with an admin namespace and specifics controllers for
admin actions, in this namespace.

About Editor and Guest, I don't know it I should also create differents namespaces ?

Is this practise is a good choise to be conform with Rails principles (DRY, REST full) ?

I would like to know what would be the bests practise in Rails way to implement that.
Your tips or recommendations are welcome ;) !  I would like to learn the best pratices in
Ruby on Rails !

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/3d245f0c-8fbe-4490-b993-255577d32bed%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

2 comments:

franklinraj said...

http://intellectoautomation.in/home-automation-company-in-chennai/
http://intellectoautomation.in/interior-designer-in-chennai/
http://intellectoautomation.in/home-security-system-in-chennai/
http://intellectoautomation.in/home-theatre-installation-in-chennai/
http://intellectoautomation.in/lighting-automation-company-in-chennai/
http://intellectoautomation.in/modular-kitchen-in-chennai/
http://intellectoautomation.in/office-automation-company-in-chennai/
http://intellectoautomation.in/cctv-camera-installation-in-chennai/

KARTHIK said...

http://chennaitraining.in/etl-testing-training-in-chennai/
http://chennaitraining.in/salesforce-admin-training-in-chennai/
http://chennaitraining.in/salesforce-developer-training-in-chennai/
http://chennaitraining.in/sap-hana-training-in-chennai/
http://chennaitraining.in/sap-mm-training-in-chennai/
http://chennaitraining.in/sap-sd-training-in-chennai/

Post a Comment