Scottish Ruby Conference ... sounds fun. What is 'Scottish
No. Am serving Sinatra at the root. I'm pressed for time for the next
and figure out why it's missing the route in there. I'm sure it must
be linked to the 'before' filter I have. I'll compare with why the
On Apr 8, 7:45 am, Konstantin Haase <
k.ha...@finn.de> wrote:
> Are you serving Sinatra under / or under some nested path? There is a known bug (at least known to me) with serving those images from nested paths. This will be fixed in the 1.2.2, which is about to be release. I'm at the Scottish Ruby Conference, so it might take until I get home. By the way, if any of you guys is at the conference and wants to talk about Sinatra or anything else, just drop me a line.
>
> Konstantin
>
> On Apr 7, 2011, at 13:43 , Mike wrote:
>
> > Hi,
>
> > Yes - thanks for the suggestions. I get a 404 if I go directly for
> > the image.
>
> > I do set :environment :development.
>
> > I think it's because of my 'before' filter which seems to catch
> > everything. I think I need it to say "before, but not if this is
> > static content" ! I could put in a regex, but not sure how to break
> > out of a before filter nicely.
>
> > Mike.
>
> > On Apr 7, 12:19 pm, Evgeni Dzhelyov <
evgeni.dzhel...@gmail.com> wrote:
> >> One more thing your environment should be set to :development to have
> >> this route enabled
>
> >> On Thu, Apr 7, 2011 at 2:17 PM, Evgeni Dzhelyov
>
> >> <
evgeni.dzhel...@gmail.com> wrote:
> >>> Hi,
>
> >>> These images are served by Sinatra itself, via this route:
> >>> get '/__sinatra__/:image.png' do
>