[Rails] Request for Advice: insert-only ordering schema

2012-02-12 Thread Andy S
Hi, I really like the insert-only ordering model described by Johnson in http://groups.google.com/group/rubyonrails-talk/browse_thread/thread/b8785791f46dd091/ec1a4f6e5a38a60c?lnk=gstq=order+schema#ec1a4f6e5a38a60c and would like your advice on how to model reserved inventory and updates that

[Rails] problem with catch all route catching redirects to external websites

2011-10-01 Thread Andy S
We use a catch-all route in SomeController that incorrectly catch redirects to external websites when we use the 'redirect_to' method. Any help on how to avoid that is greatly appreciated. This is our routes: resources :some_controller, :path = '/' do collection do get 'go_to_external' end end

[Rails] Integrating the fb_graph or koala gem with devise+mongoid+omniauth in rails 3

2011-04-17 Thread Andy S
I need Facebook API integration in my rails application, but I can't figure out how to store the Facebook access token from Omniauth so that it can be reused later by a Facebook API gem. The Facebook API gems I am considering is fb_graph or koala (don't really care which), but I am open to other