How to call jQuery from controller(after sign up path from Devise)?
===

I don't know is it possible - to call jQuery when user sign up.
<p>I'm using Rails and Devise gem, so I have after_sign_up_path:


      def after_sign_up_path_for(resource)
        edit_user_registration_path(current_user)
        //call jQuery 
     end

or if this is impossible - why my js is not working :

       if($('.alert').val()=='Welcome! You sign up.')) 
          $('#congrats').show();