Hi,
I am following this post *
Ruby Social Gems: LinkedIn — SitePoint* for using linked
gem
and API for getting profile and other stuff
But at the end I am getting this error:
=> Booting WEBrick
=> Rails 3.2.13 application starting in development on
http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
Exiting
/Users/rekha/.rvm/gems/ruby-1.9.2-p320/gems/actionpack-3.2.13/lib/action_dispatch/routing/mapper.rb:179:in
default_controller_and_action': missing :action (ArgumentError) from /Users/rekha/.rvm/gems/ruby-1.9.2-p320/gems/actionpack-3.2.13/lib/action_dispatch/routing/mapper.rb:72:in
normalize_options!’
from
/Users/rekha/.rvm/gems/ruby-1.9.2-p320/gems/actionpack-3.2.13/lib/action_dispatch/routing/mapper.rb:60:in
initialize' from /Users/rekha/.rvm/gems/ruby-1.9.2-p320/gems/actionpack-3.2.13/lib/action_dispatch/routing/mapper.rb:1308:in
new’
from
/Users/rekha/.rvm/gems/ruby-1.9.2-p320/gems/actionpack-3.2.13/lib/action_dispatch/routing/mapper.rb:1308:in
add_route' from /Users/rekha/.rvm/gems/ruby-1.9.2-p320/gems/actionpack-3.2.13/lib/action_dispatch/routing/mapper.rb:1287:in
decomposed_match’
from
/Users/rekha/.rvm/gems/ruby-1.9.2-p320/gems/actionpack-3.2.13/lib/action_dispatch/routing/mapper.rb:1269:in
block in match' from /Users/rekha/.rvm/gems/ruby-1.9.2-p320/gems/actionpack-3.2.13/lib/action_dispatch/routing/mapper.rb:1269:in
each’
from
/Users/rekha/.rvm/gems/ruby-1.9.2-p320/gems/actionpack-3.2.13/lib/action_dispatch/routing/mapper.rb:1269:in
match' from /Users/rekha/rails_projects/linkedin_gem/config/routes.rb:7:in
block
in <top (required)>’
from
/Users/rekha/.rvm/gems/ruby-1.9.2-p320/gems/actionpack-3.2.13/lib/action_dispatch/routing/route_set.rb:289:in
instance_exec' from /Users/rekha/.rvm/gems/ruby-1.9.2-p320/gems/actionpack-3.2.13/lib/action_dispatch/routing/route_set.rb:289:in
eval_block’
from
/Users/rekha/.rvm/gems/ruby-1.9.2-p320/gems/actionpack-3.2.13/lib/action_dispatch/routing/route_set.rb:267:in
draw' from /Users/rekha/rails_projects/linkedin_gem/config/routes.rb:1:in
<top
(required)>’
from
/Users/rekha/.rvm/gems/ruby-1.9.2-p320/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:245:in
load' from /Users/rekha/.rvm/gems/ruby-1.9.2-p320/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:245:in
block in load’
from
/Users/rekha/.rvm/gems/ruby-1.9.2-p320/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:236:in
load_dependency' from /Users/rekha/.rvm/gems/ruby-1.9.2-p320/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:245:in
load’
from
/Users/rekha/.rvm/gems/ruby-1.9.2-p320/gems/railties-3.2.13/lib/rails/application/routes_reloader.rb:40:in
block in load_paths' from /Users/rekha/.rvm/gems/ruby-1.9.2-p320/gems/railties-3.2.13/lib/rails/application/routes_reloader.rb:40:in
each’
from
/Users/rekha/.rvm/gems/ruby-1.9.2-p320/gems/railties-3.2.13/lib/rails/application/routes_reloader.rb:40:in
load_paths' from /Users/rekha/.rvm/gems/ruby-1.9.2-p320/gems/railties-3.2.13/lib/rails/application/routes_reloader.rb:16:in
reload!’
from
/Users/rekha/.rvm/gems/ruby-1.9.2-p320/gems/railties-3.2.13/lib/rails/application/routes_reloader.rb:26:in
block in updater' from /Users/rekha/.rvm/gems/ruby-1.9.2-p320/gems/activesupport-3.2.13/lib/active_support/file_update_checker.rb:78:in
call’
from
/Users/rekha/.rvm/gems/ruby-1.9.2-p320/gems/activesupport-3.2.13/lib/active_support/file_update_checker.rb:78:in
execute' from /Users/rekha/.rvm/gems/ruby-1.9.2-p320/gems/railties-3.2.13/lib/rails/application/routes_reloader.rb:27:in
updater’
from
/Users/rekha/.rvm/gems/ruby-1.9.2-p320/gems/railties-3.2.13/lib/rails/application/routes_reloader.rb:7:in
execute_if_updated' from /Users/rekha/.rvm/gems/ruby-1.9.2-p320/gems/railties-3.2.13/lib/rails/application/finisher.rb:66:in
block in module:Finisher’
from
/Users/rekha/.rvm/gems/ruby-1.9.2-p320/gems/railties-3.2.13/lib/rails/initializable.rb:30:in
instance_exec' from /Users/rekha/.rvm/gems/ruby-1.9.2-p320/gems/railties-3.2.13/lib/rails/initializable.rb:30:in
run’
from
/Users/rekha/.rvm/gems/ruby-1.9.2-p320/gems/railties-3.2.13/lib/rails/initializable.rb:55:in
block in run_initializers' from /Users/rekha/.rvm/gems/ruby-1.9.2-p320/gems/railties-3.2.13/lib/rails/initializable.rb:54:in
each’
from
/Users/rekha/.rvm/gems/ruby-1.9.2-p320/gems/railties-3.2.13/lib/rails/initializable.rb:54:in
run_initializers' from /Users/rekha/.rvm/gems/ruby-1.9.2-p320/gems/railties-3.2.13/lib/rails/application.rb:136:in
initialize!’
from
/Users/rekha/.rvm/gems/ruby-1.9.2-p320/gems/railties-3.2.13/lib/rails/railtie/configurable.rb:30:in
method_missing' from /Users/rekha/rails_projects/linkedin_gem/config/environment.rb:5:in
<top (required)>’
from
/Users/rekha/.rvm/gems/ruby-1.9.2-p320/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in
require' from /Users/rekha/.rvm/gems/ruby-1.9.2-p320/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in
block in require’
from
/Users/rekha/.rvm/gems/ruby-1.9.2-p320/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:236:in
load_dependency' from /Users/rekha/.rvm/gems/ruby-1.9.2-p320/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in
require’
from /Users/rekha/rails_projects/linkedin_gem/config.ru:3:in `block in
I tried different solution as suggested by folks for changing
routes.rbbut not getting right one…
Can anyone tell what’s wrong…??
Thanks