nov/rack-oauth2-sample — Issue #4: app/models/auth/facebook.rb:31: syntax error, unexpected ':', expecting ')'
Author: shemusok
Created: 2011-11-22 13:08:26+00:00
State: open

I run sample server and got next, when try to connect to it:

***
Started GET "/" for 192.168.2.100 at Fri Nov 18 00:50:45 +0300 2011
Processing by AccountsController#new as HTML
Rendered layouts/_footer.html.erb (0.4ms)
Rendered accounts/new.html.erb within layouts/application (8.7ms)
Completed 500 Internal Server Error in 90ms

ActionView::Template::Error (/home/shem/prj/oauth2/rack-oauth2-sample/app/models/auth/facebook.rb:31: syntax error, unexpected ':', expecting ')'
fb_user.account || Account.create!(facebook: fb_user)
^):
24: <%= Auth::Facebook.config[:client_id] %>",
28: cookie: true,
29: xfbml: true,
30: oauth: true
app/views/layouts/application.html.erb:27:in `_app_views_layouts_application_html_erb___1814076180_70099297290320_0'

Rendered /usr/lib64/ruby/gems/1.8/gems/actionpack-3.0.10/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.2ms)
Rendered /usr/lib64/ruby/gems/1.8/gems/actionpack-3.0.10/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (3.3ms)
Rendered /usr/lib64/ruby/gems/1.8/gems/actionpack-3.0.10/lib/action_dispatch/middleware/templates/rescues/template_error.erb within rescues/layout (8.0ms)
***
linux x86_64
ruby 1.8.7
rails 3.1.3

yep, i'm noob in ruby:)