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 when trying to edit #1072

Closed
adam21 opened this issue Oct 19, 2015 · 7 comments
Closed

Undefined method when trying to edit #1072

adam21 opened this issue Oct 19, 2015 · 7 comments

Comments

@adam21
Copy link

adam21 commented Oct 19, 2015

Hello everyone,

I used the example below to configure potlatch2 editor :

# Default editor
default_editor: "potlatch2"
# OAuth consumer key for Potlatch 2
potlatch2_key: "8lFmZPsagHV4l3rkAHq0hWY5vV3Ctl3oEFY1aXth"

But when trying to edit with potlatch2, I get this error message :

image

The error is saying that the method "access_token_for_ser" is undefined , Do you have any idea please ?

@tomhughes
Copy link
Member

Well clearly that isn't a valid key, or you haven't restarted rails since you put that in the configuration.

@adam21
Copy link
Author

adam21 commented Oct 19, 2015

I have restarted rails after updating application.yml file, but how can I get a valid key ??

@tomhughes
Copy link
Member

By registering an OAuth application in the normal way - how did you get the value you are using at the moment?

@adam21
Copy link
Author

adam21 commented Oct 19, 2015

I'am getting this value from the config description here

Please correct me if I'm wrong

@tomhughes
Copy link
Member

That's an example! It won't match any client in your database for, err, fairly obvious reasons.

You need to visit http://myserver/user/myuser/oauth_clients and register a client in your server and use it's key. Then the ClientApplication.find_by_key might actually find it...

@adam21
Copy link
Author

adam21 commented Oct 19, 2015

I used the OAuth settings to generate a key and now I'am able to add new spatial objects (point, line, polygon) but not to edit my own apidb that I have set up with osmosis.

In the configuration page - Populating database section, the yet-to-be-written script link doesn't point to a ready for use solution.

Do I have to create this script myself ? Can I edit an existing apidb the same way like in the openstreetmap public website ?

image

Thank you

@tomhughes
Copy link
Member

Can I suggest that the mailing list or IRC would be a more appropriate place to seek help - there is clearly no bug here.

Yes of course you can edit the database in the normal way.

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