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
try:
match "/oauth/create", :to => "oauth#create", :via => "get", :as => "oauth_callback"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With