Didde
unread,Jul 18, 2010, 12:57:48 PM7/18/10Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Devise
Hi Guys,
Sorry to bother you with a question which might seem obvious to some,
but I have failed to find an answer or solution via Google et al.
We're using Devise on a project not yet on Rails 3, hence we roll with
devise-1.0.8 as a gem installation. In this project we need to
override some of the default controllers in order to customize
different behaviors. However, the namespace – or lack there of – in
use prevents us from creating a custom "registrations_controller.rb"
and extending Device's own.
From what I can gather over at GitHub the pre-versions for RoR 3 seems
to use the Devise::Controllers namespace. So, is there a branch or
version in which us still on RoR 2.3 can extend controllers? Or am I
missing something here? :)
At the moment, we route Devise like this:
map.devise_for :users,
:as => "accounts",
:path_names => {
:sign_up => 'register',
:sign_in => 'login',
:sign_out => 'logout',
:password => 'secret',
:confirmation => 'verification',
:unlock => 'unlock'
}
Thanks everyone. We'd really appreciate any input on this matter.