[Potlatch-dev] POTLATCH2_KEY uninitialised constant error
Perry Casson
4perryc at gmail.com
Sat Apr 2 21:11:01 BST 2011
Sorry my mistake, it's all working - not a rails guy - didn't know you have
to restart the rails app after a change to application.yml.
Perry
On Sat, Apr 2, 2011 at 12:15 AM, Perry Casson <4perryc at gmail.com> wrote:
>
> 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/48abfe1e/attachment.html>
More information about the Potlatch-dev
mailing list