6
Ich versuche, das Mogli gem (http://github.com/mmangino/mogli) auf Schienen 3 zu installieren und habe Probleme mit der Konfiguration. Ich habe NO Erfahrung mit Rails 2.Installieren Mogli Gem auf Schienen 3
Für Rails 2
Add config.gem "mogli" to environment.rb
Für Rails 3, habe ich folgendes zum gemfile. 3
gem 'mogli'
Für Rails 2, Routen
map.resource :oauth, :controller=>"oauth"
map.root :controller=>"oauth"
map.oauth_callback "/oauth/create", :controller=>"oauth", :action=>"create"
Für Rails 3, fügte ich
resources :oauth
root :to => "oauth#index"
Und ich weiß nicht, wie die map.oauth_callback in Rails zu vertreten.
Danke
[diese] (http://www.engineyard.com/blog/2010/the-lowdown-on-routes-in-rails-3/) Artikel ist ziemlich gut für die Hilfe mit Routen Probleme – stephenmurdoch
PS - Vorsicht, dass die ursprüngliche Route, ist eine singuläre Ressource 'map.resource: oauth,: controller =>" oauth "' - Sie haben einen Plural angegeben dh 'Ressourcen: oauth' - könnte besser sein, es zu ändern zu "Ressource: oauth" - nur daran denken - hoffe, dass dies hilft – stephenmurdoch
@Dara Ich habe meine Ressource als singular und mein Controller als Singular und es funktioniert gut eingestellt. – Joey