Create, update and destroy actions in an UsersController that uses Devise for registration?

Should I implement the new, create, edit, update and destroy actions on a controller whose corresponding model uses Devise's :registerable module?

In other words, should I keep the CRUD interface even though Devise manages the registration process for me?


If you want to manage your Users (or whatever your Devise model is called) via a CRUD interface, you'll need to have those actions available. Unless I'm mistaken, if you manage your Users with a CRUD setup, you'll need to remove the :registerable from the model.

If you want need/want a CRUD interface for your Users, you can remove the CRUD actions (Devise will work fine without a CRUD interface, or CRUD actions in your controller).

Category:ruby on rails Time:2011-01-16 Views:1

Related post

  • cancan: the difference between "manage" and the combination of "read, create, update and destroy"? 2011-08-14

    In trying to debug use of cancan i found that if use the following i can get past the accessdenied message: can :manage, Model When i changed it to the following I am denied access: can :read, Model can :create, Model can :update, Model can :destroy,

  • How can I use a method action like the 'update', 'create' or 'destroy' actions (from scaffold)? 2010-12-19

    I made these changes appropriately: Now in 'app/controllers/*users_controller.rb*' I have this code: def reset respond_to do |format| format.html # reset.html.erb end end def send_reset respond_to do |format| if @user.errors.empty? ... else

  • Rails3 - Given a Form that allows for Updating/Creating - How Delete/Destroy a record? 2010-10-18

    I have the following for which allows for creating or updating a record: <%=form_for [:project, @permission], :remote => true do |f| %> ... You can change roles in the form... (This works great for new or existing records) <% end %> In

  • Can't find the the 'destroy' action, but it's there- weird error 2011-03-24

    My app can't seem to find the 'destroy' action in my Sessions controller. Weird, because it's there. I have a link like so: <%= link_to "Logout", logout_path %> Which I route to my destroy action in routes.rb: match '/logout' => "sessions#de

  • Sencha Touch: ScriptTagProxy url for create/update functionality 2011-04-11

    I've a ScriptTagProxy and I'm able to receive the data, but now I wanted to update a record. I've specified an url but only one url. Do I have to handle all the actions (read, update, create, delete) with this url? If yes: how does the action is appl

  • Is there a need to update a custom action's binary after each build? 2009-09-17

    I have created a c++ custom action for a setup-project application in VS Team System 2008. Using ORCA I implemented it and inserted the binary image of the custom action. This works okay. Does the binary object remain intact after each subsequent bui

  • How to modify the create & update method in RoR? 2010-01-23

    I know that the after the create or update methods is done, they have the method like this respond_to do |format| format.js end Since I change my form from remote form to non remote form, so I won't use the format.js anymore, I just want to refresh t

  • Callbacks on entity on created/updated 2010-10-22

    I would like to know when entities in a certain database table are either created or updated. The application is essentially a CMS, and I need to know when changes are made to the content so that I can reindex them for searches. I know that the autog

  • Why Destroy Action is NOT being fired? 2010-12-02

    I am using Rails 3 and trying to see why the Destroy action is not being fired! My html fired is defined as follows: <%= link_to "Delete", :action => "destroy", :id => article, :method => :delete, :confirm => "are u sure?" %> And he

  • common term for create,update,delete 2011-03-26

    What is the common term that we can use for Create/Update/Delete Operations? Can we use 'transaction'? --------------Solutions------------- All these are called DML (Data Manipulation Language) statements. They may be called transactions in the busin

  • rails 3 destroy action problem 2011-03-31

    i am trying to delete some rows on my database but when i call destroy action, update action works. this is delete.html.haml =form_for @post, :url => {:action => 'destroy', :id =>} do |f| this is route resources :post root :to =>

  • Why does destroy action trigger HTTP authentication in Production in Rails 3? 2011-04-20

    Screenshot of what happens when I press 'delete': This is what I see in my production.log: Started POST "/clients/1" for at 2011-04-20 13:48:26 -0500 Processing by ClientsController#destroy as JSON Parameters: {"id

  • Rails - after_save - How to determine if a record was Created/Update or Deleted 2011-04-23

    In my rails app I have the following models: Messages (id, title, content, project_id) MessageViews (id, message_id, view_status) Permissions (id, user_id, project_id) Projects (id, name) Whenever a user is added to a project which existing messages,

  • Ruby on Rails 2.3.8: Is there a way to make the destroy action for every controller only occur if a condition is met? 2011-07-13

    Currently, in my app, I've discovered that if you intercept a packet about to perform a delete command, you can change the ID to any id, and that object will get deleted, regardless if it belong to the person who made it or not. So, my question is, i

  • Rails 3 - Can't figure out Create/Update form clause 2011-07-14

    Can someone tell me what I'm doing wrong here? I'm using the same page to do my Create and Update form have this code right at the top of my page: This works: <% if @media.blank? %> <%= form_for(:media, :url => {:action => 'create'}) d

  • Create ,UPDATE and DELETE call using django-tastypie 2011-07-19

    I am using django-tastypie to build the API for my project. I followed the tastypie-doc. Using this doc I am able to call the GET method and filter the data based on the parameter. But I couldn't find any examples for PUT(UPDATE), DELETE (delete obje

  • How to create a custom POST Action in Rails3 2011-09-19

    I am trying to create a custom POST action for my article object. In my routes.rb, I have set the action in the following way: resources :articles do member do post 'update_assigned_video' end end In my articles_controller.rb I have: def update_assig

  • Symfony2: how to use one form for create/update like in symfony 1.x? 2012-01-21

    Symfony crud generator by default create two forms, for create and update. I want to create a twig template form.html.twig with only one form for both actions, I remember symfony 1.x I did this: <form action="<?php echo url_for('blog/'.($form-

  • Rails 3 Correctly routing the destroy action for a session 2012-03-03

    I am refactoring my access_controller into a sessions_controller and can't seem to get my destroy action working properly. Logging in seems to work fine, but I am unable to log out of a session. Here is the link I have for logging out: <%= link_to

Copyright (C), All Rights Reserved.

processed in 0.562 (s). 13 q(s)