Dude, my brain failed.  I was running thin using 'thin start' instead
of 'merb -a thin'.  Thanks so much for pointing out what could have
sucked down quite a bit of time!

One weird behavior, though.  It seems that for every static file thats
loaded, I get a "merb : worker (port 4000) ~ In repository block
default" printed out in the console.  So if I have 100 static files,
I'll get 100 messages.  Pretty weird/annoying.  Are you getting this
behavior as well?  Can you try this modified version of your app and
see if the same thing happens to you:  
http://www.freeridestudios.com/ftp/teststatic.zip

Merb console printout:
$ merb -a thin
Merb root at: /Users/oj/Documents/projects/cyr/repos/www/trunk/tmp/
teststatic
Loading init file from ./config/init.rb
DEPRECATED: Use bundler to setup and load dependency merb_datamapper.
Loading ./config/environments/development.rb
 ~ Connecting to database...
 ~ Loaded slice 'MerbAuthSlicePassword' ...
 ~ Parent pid: 78357
 ~ Compiling routes...
 ~ Activating slice 'MerbAuthSlicePassword' ...
merb : worker (port 4000) ~ Starting Thin at port 4000
merb : worker (port 4000) ~ Using Thin adapter on host 0.0.0.0 and
port 4000.
merb : worker (port 4000) ~ Successfully bound to port 4000
merb : worker (port 4000) ~ In repository block default
merb : worker (port 4000) ~ Started request handling: 2009-10-17
11:20:36 -0700
merb : worker (port 4000) ~ Routed to: {"controller"=>"whatever",
"action"=>"index"}
merb : worker (port 4000) ~ Params: {"controller"=>"whatever",
"action"=>"index"}
merb : worker (port 4000) ~
{:before_filters_time=>5.8e-05, :after_filters_time=>1.5e-05, 
:action_time=>0.001903, :dispatch_time=>0.002505}
merb : worker (port 4000) ~

merb : worker (port 4000) ~ In repository block default
merb : worker (port 4000) ~ In repository block default
merb : worker (port 4000) ~ In repository block default
merb : worker (port 4000) ~ In repository block default
merb : worker (port 4000) ~ In repository block default





On Oct 17, 9:47 am, Jacques Crocker <[email protected]> wrote:
> Hmm, this is usually handled by this within the rackup file:
> use Merb::Rack::Static, Merb.dir_for(:public)
>
> I just tried generating a new app using merb-gen app and ran it using  
> the thin adapter on 1.9.1 and it seems to show the images and  
> stylesheets ok. Can you try this project out and see if it works for  
> you:http://idisk.me.com/jcnetdev/Public/teststatic.zip
>
> just unzip, run "gem bundle", then merb -a thin to start
>
> Let me know if theres something else going wrong. Also might want to  
> try to the latest merb code fromhttp://github.com/wycats/merb(git  
> clone, then rake install to install the gems)
>
> On Oct 17, 2009, at 1:19 AM, ojak wrote:
>
>
>
> > I just booted a fresh Merb app (Ruby 1.9.1, Merb 1.1, Datamapper
> > 0.10.2, Rack 1.0.0, Thin 1.2.4) and I am getting the following error:
>
> >      Controller class not found for controller `images' -
> > (Merb::ControllerExceptions::NotFound)
>
> > Rack does not appear to be serving the static files (image,
> > stylesheets, etc).  Any help?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"merb" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/merb?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to