Hi, I am following this post * http://www.sitepoint.com/ruby-social-gems-linkedin/* 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 <main>'' from /Users/rekha/.rvm/gems/ruby-1.9.2-p320/gems/rack-1.4.5/lib/rack/builder.rb:51:in `instance_eval'' from /Users/rekha/.rvm/gems/ruby-1.9.2-p320/gems/rack-1.4.5/lib/rack/builder.rb:51:in `initialize'' from /Users/rekha/rails_projects/linkedin_gem/config.ru:in `new'' from /Users/rekha/rails_projects/linkedin_gem/config.ru:in `<main>'' from /Users/rekha/.rvm/gems/ruby-1.9.2-p320/gems/rack-1.4.5/lib/rack/builder.rb:40:in `eval'' from /Users/rekha/.rvm/gems/ruby-1.9.2-p320/gems/rack-1.4.5/lib/rack/builder.rb:40:in `parse_file'' from /Users/rekha/.rvm/gems/ruby-1.9.2-p320/gems/rack-1.4.5/lib/rack/server.rb:200:in `app'' from /Users/rekha/.rvm/gems/ruby-1.9.2-p320/gems/railties-3.2.13/lib/rails/commands/server.rb:46:in `app'' from /Users/rekha/.rvm/gems/ruby-1.9.2-p320/gems/rack-1.4.5/lib/rack/server.rb:304:in `wrapped_app'' from /Users/rekha/.rvm/gems/ruby-1.9.2-p320/gems/rack-1.4.5/lib/rack/server.rb:254:in `start'' from /Users/rekha/.rvm/gems/ruby-1.9.2-p320/gems/railties-3.2.13/lib/rails/commands/server.rb:70:in `start'' from /Users/rekha/.rvm/gems/ruby-1.9.2-p320/gems/railties-3.2.13/lib/rails/commands.rb:55:in `block in <top (required)>'' from /Users/rekha/.rvm/gems/ruby-1.9.2-p320/gems/railties-3.2.13/lib/rails/commands.rb:50:in `tap'' from /Users/rekha/.rvm/gems/ruby-1.9.2-p320/gems/railties-3.2.13/lib/rails/commands.rb:50:in `<top (required)>'' from script/rails:6:in `require'' from script/rails:6:in `<main>'' I tried different solution as suggested by folks for changing *routes.rb*but not getting right one.. Can anyone tell what''s wrong..?? Thanks -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/fa781ab8-59de-48b1-998d-4b320993216f%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
On 29 August 2013 20:48, Rekha Benada <rekha.benada-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi, > > I am following this post http://www.sitepoint.com/ruby-social-gems-linkedin/ > 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)Very likely a problem with routes.rb. Post it here (after removing all comment lines, we don''t need to see those). Colin -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLt2bjVL8u565iwkk%2BCPzA3XPhzLkZqNXNOccg6JFontEg%40mail.gmail.com. For more options, visit https://groups.google.com/groups/opt_out.
My routes.rb is same as in this tutorial. Here it is LinkedinGem::Application.routes.draw do devise_for :users resources :linkedin match ''/linkedin_profile'' match ''/linkedin_oauth_url'' => ''linkedin#generate_linkedin_oauth_url'' match ''/oauth_account'' => ''linkedin#oauth_account'' root :to => "linkedin#index" On Thursday, August 29, 2013 1:00:24 PM UTC-7, Colin Law wrote:> > On 29 August 2013 20:48, Rekha Benada <rekha....-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org <javascript:>> > wrote: > > Hi, > > > > I am following this post > http://www.sitepoint.com/ruby-social-gems-linkedin/ > > 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) > > Very likely a problem with routes.rb. Post it here (after removing > all comment lines, we don''t need to see those). > > Colin >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/15736b84-a16d-4a1a-8202-e6ab7815c4bd%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
On 2 September 2013 12:16, Rekha Benada <rekhu.meena-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> My routes.rb is same as in this tutorial. Here it isPlease don''t top post, it makes it difficult to follow the thread. Insert your reply inline at appropriate points in previous message. Thanks.> > LinkedinGem::Application.routes.draw do > devise_for :users > > resources :linkedin > > > match ''/linkedin_profile''Is there something missing on the end of that line?> match ''/linkedin_oauth_url'' => ''linkedin#generate_linkedin_oauth_url'' > match ''/oauth_account'' => ''linkedin#oauth_account'' > > root :to => "linkedin#index"Also you seem to be missing an end statement Colin> > On Thursday, August 29, 2013 1:00:24 PM UTC-7, Colin Law wrote: >> >> On 29 August 2013 20:48, Rekha Benada <rekha....-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >> > Hi, >> > >> > I am following this post >> > http://www.sitepoint.com/ruby-social-gems-linkedin/ >> > 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) >> >> Very likely a problem with routes.rb. Post it here (after removing >> all comment lines, we don''t need to see those). >> >> Colin-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLt3P36GYLy971PFRTDeb5wLpd3HNamsdNezW4weB7qvYQ%40mail.gmail.com. For more options, visit https://groups.google.com/groups/opt_out.
On Monday, September 2, 2013 4:30:37 AM UTC-7, Colin Law wrote:> > On 2 September 2013 12:16, Rekha Benada <rekhu...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org <javascript:>> > wrote: > > My routes.rb is same as in this tutorial. Here it is > > Please don''t top post, it makes it difficult to follow the thread. > Insert your reply inline at appropriate points in previous message. > Thanks. > > > > > LinkedinGem::Application.routes.draw do > > devise_for :users > > > > resources :linkedin > > > > > > match ''/linkedin_profile'' > > Is there something missing on the end of that line? > > Nothing is missing here> > match ''/linkedin_oauth_url'' => ''linkedin#generate_linkedin_oauth_url'' > > match ''/oauth_account'' => ''linkedin#oauth_account'' > > > > root :to => "linkedin#index" > > Also you seem to be missing an end statement > > yes end statement is there> Colin > > > > > On Thursday, August 29, 2013 1:00:24 PM UTC-7, Colin Law wrote: > >> > >> On 29 August 2013 20:48, Rekha Benada <rekha....-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > >> > Hi, > >> > > >> > I am following this post > >> > http://www.sitepoint.com/ruby-social-gems-linkedin/ > >> > 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) > >> > >> Very likely a problem with routes.rb. Post it here (after removing > >> all comment lines, we don''t need to see those). > >> > >> Colin >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/3167efe6-3dff-4553-9750-cd30fac74214%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.