[Potlatch-dev] POTLATCH2_KEY uninitialised constant error
Perry Casson
4perryc at gmail.com
Sat Apr 2 07:15:25 BST 2011
Built a "Rails Port" dev server today using a fresh git and all went well.
Potlatch 1 works fine but when I try to edit with potlatch 2. I'm getting an
error about POTLATCH2 key not being initalized.
I think I've done OAuth stuff correctly and entered the keys in
plotlatch2.html
Google-ing "POTLATCH2_KEY" only tuned up a thread on this list and where it
was discussed to add the key to application.yml and I tried that too but not
joy.
# Default editor
default_editor: "potlatch2"
# OAuth consumer key for Potlatch 2
potlatch2_key: "###key_from_OAuth###"
Here's the error:
<% token = @user.access_token(POTLATCH2_KEY) %>
ActionView::TemplateError (uninitialized constant
ActionView::Base::CompiledTemplates::POTLATCH2_KEY) on line #7 of
app/views/site/_potlatch2.html.erb:
Is there something I've missed?
Thanks,
Perry Casson
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/potlatch-dev/attachments/20110402/7204a1ac/attachment.html>
More information about the Potlatch-dev
mailing list