Send_file problem?

I see that typo uses routing to deal with the switching that goes on
different themes…

map.connect ‘stylesheets/theme/:filename’,
:controller => ‘theme’, :action => ‘stylesheets’, :filename => /.*/

… which takes us to the stylesheets action of the themes controller…

def stylesheets
render_theme_item(:stylesheets, params[:filename], ‘text/css;

… which uses the render_theme_item action…

send_file(this_blog.current_theme.path + "/#{type}/#{file}",
          :type => mime, :disposition => 'inline', :stream => false)

… which uses “send_file” to serve the theme files from within the
framework to the outside world, as if they were in the public directory.

BUT… This is broken on my installation. The theme files simply don’t
up, so I get a nice unstyled blog. I only managed to get it to work by
simply copying the theme files into the public directory, which is not
ideal. Anyone know what is wrong here?

I’m using Typo 4.1, Rails 1.2.0, & Ruby 1.8.5



This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs