controller

I just upgraded to Kubuntu 16.04 beta and ran into a frustrating situation. My audio controls weren’t working; I tried my volume buttons, mute button and the little icon at the bottom (which happened to be highlighted in red).

When I went into Audio Volume Settings, all tabs had their own little version of “No _____ Detected”

So what to do?

After some troubleshooting with the fantastic help of “clivejo” in the #kubuntu freenode channel, it was finally determined that the settings that I carried over from my previous version of Kubuntu were causing the problem. Here’s how I solved it:

Remove directory ~/.config/.pulse/

Remove directory ~/.configh/.kmixrc

Do this for all user accounts that have been carried over (these configurations are user-specific)

With these four steps, you should regain control over your life again (or at least your audio).

Update:

You may find that the above temporarily solves the problem but upon the next bootup, it’s the same issue all over again. (That was the case with me.) Apparently there was another file somewhere in ~/.config/ left over from 14.04 that was screwing everything up. (Seemed it clashed with Plasma’s autologin and pulse audio got pinched in the middle.) Anyway, I just removed ~/.config/ entirely and started fresh. If that’s not an option for you, remove each file one by one and see which one’s the culprit. I just didn’t have the patience for that.

Judging by the number of different StackOverflow questions, there are a lot of people trying to do this, and a lot of confusion. Here is how I did it, and hopefully it helps you.

I have a User and a Verifier model. What I want to do is create a new Verifier every time I create a new user, and pass in the user.id for the User into the verifier.user_id so that they are mapped together.

In order to do this I want to not really override but add additional functionality to the existing devise controller that handles when new users are created (and destroyed). So I need to access the RegistrationsController#Create function in devise.

First thing is to create a new folder in the ‘app/controllers‘ folder where we can put my custom controller. I called mine ‘app/controllers/my_devise‘. Then create a new file in this folder…