We build Web & Mobile Applications.

< All Articles

Quick Pow Tip - "Cannot get /"

We’ve been using Pow for a while now - it’s really taken a lot of the leg work out of setting up the various projects for development.

There’s a few things that trip me up now and then, one of them is the ‘Cannot get /’ message after symlinking a project.

The simple answer is a missing config.ru - there is a ticket open for the issue. Just add the standard Rails file and you should be away (or at least one step closer!):

# Rails.root/config.ru
require "./config/environment"

use Rails::Rack::LogTailer
use ActionDispatch::Static
run ActionController::Dispatcher.new

Also be aware that older versions of Rails may not have ActionDispatch::Static defined so your config.ru might actually need to be:

# Rails.root/config.ru
require "./config/environment"

use Rails::Rack::LogTailer
use Rails::Rack::Static
run ActionController::Dispatcher.new
Updated on 07 February 2019
First published by Chris Anderton on 28 April 2011
© Chris Anderton 2019
"Quick Pow Tip - "Cannot get /"" by Chris Anderton at TheWebFellas is licensed under a Creative Commons Attribution 4.0 International License.