mperham / girl_friday

Have a task you want to get done but don't want to do it yourself? Give it to girl_friday!
http://mperham.github.com/girl_friday
MIT License
606 stars 26 forks source link

Rails 3 with girl_friday server #53

Closed gaiottino closed 12 years ago

gaiottino commented 12 years ago

In the wiki you say that we can add the server to a Rails 3 app by adding stuff to config.ru. Any reason why you don't recomment mounting if in routes.rb? Feels alot cleaner. Here's how I mount it in a Rails 3 app using routes.rb

  require 'girl_friday/server'
  mount GirlFriday::Server, at: '/girl_friday'
mperham commented 12 years ago

I guess because that only works for Rails. The config.ru change works for any Rack framework. I think it's reasonable for you to update the wiki if you'd like to.