Newbie: Strange error when playing with the UserEngine

Hi All,

When playing with the user engine, I’ve encountered the following.

When I want to “register for an account” everything goes ok…
But when I want to activate the account I end in an everlasting loop.

I’ve found that the code in the function “add_user_role” doesn’t work
properly, though
when I set :user_role_name to another name I do get an error in my
development log …

Any hints?

Kind regards,
Jeroen van Doorn

Sorry for the late reply,

Don’t have any strange chars in my url, I’ve made a new test app and
there it works ok …
As soon as I’ve found the error (probably my own mistake), I’ll report
what is was.

Regards,
Jeroen

Sorry to sound like I think everyone is running into the same bug, are
there by any chance any punctuation characters like hyphens in your
application’s root path? For example /usr/local/rails-stuff/appname …?

If that’s the case, there’s a one-line fix to a file in the Engines
plugin that solves this, and it’s just been fixed in the trunk, but not
in any of the release versions yet.

Jeroen van Doorn wrote:

Hi All,

When playing with the user engine, I’ve encountered the following.

When I want to “register for an account” everything goes ok…
But when I want to activate the account I end in an everlasting loop.

I’ve found that the code in the function “add_user_role” doesn’t work
properly, though
when I set :user_role_name to another name I do get an error in my
development log …

Any hints?

Kind regards,
Jeroen van Doorn

Well … found it, but I’m not proud :S

In the user model I added a has_many relation …
This isn’t a problem, only I added it before the includes

include LoginEngine::AuthenticatedUser
include UserEngine::AuthorizedUser

Never gonna make this mistake again…

Regards,
Jeroen

It’s really strange …

The Code for both installations is the same …
The Database names (en content for the system roles) are the same
They are even running on the same server.

Program1 gets in an infinite loop, Program2 doesn’t

Shoot me!

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs