On 6 January 2012 10:23, Brynjolfur Thorvardsson <[email protected]> wrote: > Hi again - I've got a fully dynamic css setup which includes using a css > controller. That way you get the option of passing variables to your css > from Rails, basically you can enable full programmatic control of your > stylesheets. > > What I've got is following: > > dcss_controller.rb: > > class DcssController < ApplicationController > def dstyle > render :file => 'dcss/dstyle.css', :content_type => 'text/css' > end > end
Interesting solution. I've used this approach: http://stackoverflow.com/questions/7134034/using-rails-3-1-assets-pipeline-to-conditionally-use-certain-css -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" 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/rubyonrails-talk?hl=en.

