Skip to content

Instantly share code, notes, and snippets.

@richardcalahan
Created September 28, 2011 20:16
Show Gist options
  • Save richardcalahan/1249137 to your computer and use it in GitHub Desktop.
Save richardcalahan/1249137 to your computer and use it in GitHub Desktop.
Sass ActiveAdmin Permissions Error Fix
Sass::Plugin.options.merge!(
:template_location => 'public/stylesheets/sass',
:css_location => 'tmp/stylesheets'
)
Rails.configuration.middleware.delete('Sass::Plugin::Rack')
Rails.configuration.middleware.insert_before('Rack::Sendfile', 'Sass::Plugin::Rack')
Rails.configuration.middleware.insert_before('Rack::Sendfile', 'Rack::Static',
:urls => ['/stylesheets'],
:root => "#{Rails.root}/tmp")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment