Displaying 1 result from an estimated 1 matches for "stylesheetscontroller".
2007 Aug 21
1
Render template not matching absolute path
Hi
I have a simple controller method like this:
class StylesheetsController < ApplicationController
   layout  nil
   session :off
   def gap
     site = Site.find_by_hostname(request.host)
     @colours = site.colours
     respond_to do |accepts|
       accepts.css { render :file => "#{RAILS_ROOT}/app/views/ 
stylesheets/gap.rcss" }
     end
   end
end
A...