Jump to content

The ultimate community for Ruby on Rails developers.


Photo

Devise User - destroy only


  • Please log in to reply
1 reply to this topic

#1 djmill

djmill

    Passenger

  • Members
  • 4 posts

Posted 15 June 2014 - 05:38 PM

Hi all,

 

I'm building an API that will be open to the public and I want to use devise for users, but only have one user. This superuser or admin will have CRUD privileges, but I want the general public to just have CR (create, read) privileges.

 

How would you go about doing this? Would you have the logic somewhere in the models or keep the logic in the views?



#2 djmill

djmill

    Passenger

  • Members
  • 4 posts

Posted 16 June 2014 - 03:01 AM

Never mind, just using a custom before_filter on destroy & update.






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users