dimanche 20 avril 2014

Devise Regsiteration Form


Vote count:

0




i have two devise forms used in my Ruby on rails site...how can i set different route paths for both devise form..i tried to override the after_sign_up_path..but both the forms gets redirected to same path...


i want to set different paths for each form...Please anyone have an idea of how to solve/fix it?


Registrations Controller


class Registrations Controller < Devise::Registrations Controller protected


def after_sign_up_path_for(resource) 'root_path' end end



asked 29 secs ago






Aucun commentaire:

Enregistrer un commentaire