37signals/pow — Issue #239: Rails 3.1.1 issues?
Author: gregwinn
Created: 2011-10-24 22:18:32+00:00
State: open

Hello all,
I am having an issue getting pow to work with rails 3.1 or 3.1.1. I have Many other projects work on 3.0.7 and 3.0.3. My system:

* Mac Lion 10.7.2
* Rails 3.1.1
* Ruby ruby-1.9.2-p136
* RVM 1.2.5
* Pow 0.3.2

I have a gemset for my rails 3.1+ apps like i said above my 3.0.3 and 3.0.7 apps work just fine in another gem set. Below are the steps i am taking to get to the issue:

* Switch to my rails 3.1.1 gemset
* Create the rails app "rails new testapp -d mysql"
* Create the .rvmrc file with "rvm 1.9.2@rails311"
* Create the link in pow to the application.
* Restart the app "touch tmp/restart.txt"
* Try the app in FF (testapp.dev)
Result:
```ruby
Error: Response was not received
at Client._finishRequest (/Users/gregwinn/Library/Application Support/Pow/Versions/0.3.2/node_modules/nack/lib/client.js:75:27)
at Client. (/Users/gregwinn/Library/Application Support/Pow/Versions/0.3.2/node_modules/nack/lib/client.js:37:21)
at Client.emit (events.js:81:20)
at Array.1 (net.js:831:12)
at EventEmitter._tickCallback (node.js:126:26)

```

I am able to start WEBrick with "rails s" and the application loads just fine. NOTE that pow will render the index.html file in public just fine. The issue happens after you remove this file and try sending your app to a controller.

The test app i created has nothing special in it all i did was create a "welcome" controller with and "index" method and it has simply "render :text => 'Test'"... Again i can see the text "Test" when running rails s but not when using the dev link from pow. Let me know if you need any other information! Thank you.