Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Install Mogli Gem on Rails 3

I am trying to install the mogli gem( http://github.com/mmangino/mogli ) on rails 3 and am running into problems with the configuration. I have NO prior experience with Rails 2.

For Rails 2

Add config.gem "mogli" to environment.rb

For Rails 3, I added the following to the gemfile.

gem 'mogli'

For Rails 2, routes

map.resource :oauth, :controller=>"oauth"
map.root :controller=>"oauth"
map.oauth_callback "/oauth/create", :controller=>"oauth", :action=>"create"

For Rails 3, I added

resources :oauth
root :to => "oauth#index"

And I do not know how to represent the map.oauth_callback in Rails 3.

Thanks

like image 379
Joey Avatar asked Sep 11 '10 22:09

Joey


1 Answers

try:

match "/oauth/create", :to => "oauth#create", :via => "get", :as => "oauth_callback"
like image 136
stephenmurdoch Avatar answered Oct 25 '22 03:10

stephenmurdoch