I'm going to take a shot at this question assuming you created a parameter named controller
.
The problem is you are confusing Rails by creating a parameter called controller
. It's assuming there is a controller called Employer
which of course doesn't exist. That is why you are receiving the route error. To solve this, you will have to change the parameter named controller
to something else.