How do I add an exception to my route file for some vanity names when using the Vanity gem?

I've never used (or even heard of) this gem before, but looking at its source code, see: https://github. Com/icelab/omnipopulus/blob/master/config/routes. Rb This appears to install itself as a Rails engine, and therefore isn't really in your routes.

Rb file. I'm thinking there may be a few things to test here First of all, realize that vanities' routes MUST be the ABSOLUTE DEAD LAST in your routes file. What's happening here is that when you call /login, the vanities routing is happening before your authentication gem's routing is being called.

Normally I'd just say, "move the vanities routes to the last in routes. Rb", but given that omnipopulous injects its routes based on its engine, that may not be enough I see two possible ways of solving this: Check out Gemfile and make sure that Vanities is loaded AFTER omnipopulous If that fails, copy the routes in the link I posted above into routes. Rb BEFORE the vanities routes I see #2 as an ugly hack, so I really hope #1 works first (depends on load order for gems with bundler, which I think will go top-down, but I don't have any proof of that so far).

I've never used (or even heard of) this gem before, but looking at its source code, see: https://github. Com/icelab/omnipopulus/blob/master/config/routes. Rb This appears to install itself as a Rails engine, and therefore isn't really in your routes.

Rb file. I'm thinking there may be a few things to test here. First of all, realize that vanities' routes MUST be the ABSOLUTE DEAD LAST in your routes file.

What's happening here is that when you call /login, the vanities routing is happening before your authentication gem's routing is being called. Normally I'd just say, "move the vanities routes to the last in routes. Rb", but given that omnipopulous injects its routes based on its engine, that may not be enough.

I see two possible ways of solving this: Check out Gemfile and make sure that Vanities is loaded AFTER omnipopulous. If that fails, copy the routes in the link I posted above into routes. Rb BEFORE the vanities routes.

I see #2 as an ugly hack, so I really hope #1 works first (depends on load order for gems with bundler, which I think will go top-down, but I don't have any proof of that so far).

The vanities route is absolutely dead last. I moved the gem call after omnipopulous and did bundle update but that doesn't seem to work. I will try copying the route to the routes file and see.

I have also asked the gem author if the engine is supposed to put a route in my routes. Rb file because as is it doesn't. – marcamillion Sep 19 at 3:23 It seems copying the route from the github repo to my routes.

Rb works. Thanks! – marcamillion Sep 19 at 3:25.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions