Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8993623
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T23:13:58+00:00 2026-06-15T23:13:58+00:00

Currently, I have a Rails 3.2.9 Engine which is using sass-rails . When I

  • 0

Currently, I have a Rails 3.2.9 Engine which is using sass-rails. When I generate a controller with a couple actions, the assets are also generated (i.e., javascript and CSS). However, both the Javascript and SASS are *.js and *.css files. They’re not CoffeeScript (*.js.coffee) or SASS (*.css.sass). Any ideas how to get this work?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T23:13:59+00:00Added an answer on June 15, 2026 at 11:13 pm

    Here’s a different solution which will use the coffee-rails and sass-rails gems by default – also fixes haml-rails.

    I added this to the top of my engine.rb file:

    require 'rails'
    require 'coffee-rails'
    require 'sass/rails'
    require 'haml-rails'
    

    What I did was inspect the source code of these files to see how they work in a normal Rails application. For example, in haml-rails I looked at lib/haml-rails.rb and saw the following:

    require 'haml'
    require 'rails'
    
    module Haml
      module Rails
        class Railtie < ::Rails::Railtie
          if ::Rails.version.to_f >= 3.1
            config.app_generators.template_engine :haml
          else
            config.generators.template_engine :haml
          end
        ...
    

    Similar files exist for sass-rails (lib/sass/rails/railtie.rb) and coffee-rails (lib/coffee/rails/engine.rb).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I currently have a .find method in one of my rails controller actions -
I currently have the following controller method in a Rails app: def index @entries
I have a VPS which is hosting (currently) 5 different rails applications, all with
Currently we have a Rails application but I have one question regarding the assets
I currently have a model for an assignment table in Rails 3, which looks
I have an engine, with this routes file: Rails.application.routes.draw do resources :comments, :controller =>
I have a Rails Engine gem in which I want to load a HomeController
I currently have a system in which one rails 2.3.2 has a database with
I currently have a notifications table in rails which contains the columns: notification_type, notification_id
I currently have a Rails app in which users of different ranks can upload

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.