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 8736963
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T10:24:53+00:00 2026-06-13T10:24:53+00:00

I am ugrading an app from rails 3.0 to 3.2 there is a problem

  • 0

I am ugrading an app from rails 3.0 to 3.2 there is a problem with some of my scss code. stylin.css contains:

/*
= require_self
= require_tree .
*/

stylin.css.scss contains:

@import "palette";
@import "round";
@import "html_elements";
@import "graph";
@import "menu";
@import "button";
@import "pop_up";
@import "basic_abrev";

When the styling.css is updated ‘palette’ is imported but nothing else is imported. Consequently, I get the following error when loading the first page:

Undefined mixin 'round_corners'

I think it is because the top of ’round.css.scss’ includes the following:

@mixin round_corners($radius: 8px) {
  border-radius: $radius;
  -moz-border-radius: $radius;
  -webkit-border-radius: $radius;
}

If no variable passed the default would be 8px. In the following case ’20px’ is passed to the mixin.

@include round_corners(20px);

This worked in 3.0. Is this no longer possible? If not, I’ll have to create numerous mixins or discontinue using the mixing / include feature for rounding corners.

thanks.

  • 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-13T10:24:54+00:00Added an answer on June 13, 2026 at 10:24 am

    I found this here:

    If you want to use multiple Sass files, you should generally use the Sass @import rule instead of these Sprockets directives. Using Sprockets directives all Sass files exist within their own scope, making variables or mixins only available within the document they were defined in.

    I found this here:

    When using Sprockets 2.x with Sass you will eventually run into a pretty big issue. //= require directives will not allow Sass mixins, variables, etc. to be shared between files.

    Found this here:

    Sprockets provides some directives that are placed inside of comments called require, require_tree, and require_self. DO NOT USE THEM IN YOUR SASS/SCSS FILES. They are very primitive and do not work well with Sass files. Instead, use Sass’s native @import directive which sass-rails has customized to integrate with the conventions of your rails projects.

    When I deleted this (sprockets commands) from the stylin.css.scss file, everything worked.

    /*
    = require_self
    = require_tree .
    */
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Some time ago I updated my app from Rails 1.2 to 2.3. The upgrade
I set myself the task of upgrading my app from rails 3.1 to rails
I'm upgrading an app from prototype.js to jquery. I've got this code (prototype.js): var
I'm upgrading an app from rails 3.1.1 to rails 3.2. I had to update
I'm upgrading an app from Rails 2.3.9 to Rails 3.1. The app has a
I'm in the process of upgrading my app from Rails 3.0 to Rails 3.1.
I am upgrading my app from Rails 3.0 to Rails 3.1. To do this
in upgrading rails app from 2.2.2 to 2.3.9 first error was: D:\web>ruby script/server -trace
I'm upgrading an app from Rails 3.0.3 to 3.2.8. Trying to get the assets
I'm upgrading our app from rails 2.3.10 to 2.3.12, and in doing so had

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.