drag_drop_example icon indicating copy to clipboard operation
drag_drop_example copied to clipboard

Rackup can't find 'app'

Open mrdougal opened this issue 14 years ago • 4 comments

For me rackup was unable to find 'app' (ruby 1.9.2) So in config.ru I replaced require 'app' with require File.expand_path(File.dirname(FILE) + '/app')

Now works :-)

mrdougal avatar Jan 04 '11 06:01 mrdougal

Thanks! I'll keep this open for the time being in case anyone else runs into the issue.

texel avatar Jan 29 '11 01:01 texel

Actually you can use: require './app'

ruby 1.9 does not add the . to the path

ddacunha avatar Apr 05 '11 11:04 ddacunha

@ddacunha thanks that's a lot more elegant than my solution

mrdougal avatar Apr 06 '11 02:04 mrdougal

Good call! I'll add this in.

texel avatar Apr 06 '11 02:04 texel