Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'Undefined method 'gitosis_public_keys'", redmine 1.0.0 #10

Open
grossws opened this issue Aug 2, 2010 · 4 comments
Open

'Undefined method 'gitosis_public_keys'", redmine 1.0.0 #10

grossws opened this issue Aug 2, 2010 · 4 comments

Comments

@grossws
Copy link

grossws commented Aug 2, 2010

Platform: GNU/Linux, ruby 1.8.7, rails 2.3.5, redmine 1.0.0, postgresql-8.4

On link from profile (http://localhost:3000/my/public_keys) I get such error: "undefined method `gitosis_public_keys' for #User:0x7f220c19a958"

Little part of a traceback:
/home/srv/redmine/vendor/rails/activerecord/lib/active_record/attribute_methods.rb:260:in method_missing' /home/srv/redmine/vendor/plugins/redmine_gitosis/app/controllers/gitosis_public_keys_controller.rb:17:inindex'

Migration was successful, gitosis_public_keys table was created.

I tried some other methods, as gitosis_public_keys/new. It creates entry in db, but after that redirects to http://localhost:3000/my/public_keys, and crashes.

@ajf
Copy link

ajf commented Oct 1, 2010

It seems the Association isn't being added to the User model.

@grossws
Copy link
Author

grossws commented Oct 1, 2010

And how to create such Association? I don't understand Rails so much(

@ajf
Copy link

ajf commented Oct 1, 2010

Are you running in development mode or production?

@ajf
Copy link

ajf commented Oct 1, 2010

Well It looks like it's the same problem as here: http://www.ruby-forum.com/topic/166578

You need to be running in production mode for it to work since in development, this plugin doesn't get reloaded on subsequent calls. If you restart apache/mongrel/webrick it will work for the first request. Subsequent requests will fail.

I also used http://github.com/mattmeng/redmine_gitosis instead of this branch as the other branch seems to be actively developed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants