Skip to main content

All Questions

Tagged with
0 votes
1 answer
39 views

Simple Form is rendering duplicate input field in rails 7

Guys I am trying to render a partial form using a simple_form but I am getting a duplicate input field of same attribute. This is my form <%= simple_form_for post, html: { class: "post form&...
JW Gim's user avatar
  • 1
2 votes
0 answers
120 views

How migrate and use dartsass-sprockets with rails 6?

I use gem 'sass-rails' on rails (6.1.7.6), I want try to use gem 'dartsass-sprockets' (because I have to use sprockets), I bundle install and don't modify other thing at this point. I get this error : ...
Matrix's user avatar
  • 3,461
0 votes
1 answer
34 views

Rails project .scss partial file isn't being loaded

I have a component file for a css card called "_teapot_card.scss" located in the usual "components" folder along with other css components (that are working) such as the navbar. It ...
Jason Sturgeon's user avatar
0 votes
1 answer
33 views

how using css variable with SASS rails interpreter? (conflict)

I'm using sass-rails gem and I try to use css variable like this : --h: 198 --l: 38% --c: hsl(var(--h), 100%, var(--l)) background-image: linear-gradient(to right, var(--c) 0%, #000 100%) ...
Matrix's user avatar
  • 3,461
1 vote
0 answers
48 views

CONSULDEMOCRACY: Sass fails (sassc-embeded-import stylesheet not found)

User Story I am trying to deploy a local instance of consuledemocracy and if fails with Sass::CompileError Description My system is an Ubuntu 22.04 and i use the following versions: Rails v6.1.7.7 ...
user24275397's user avatar
0 votes
1 answer
33 views

SASS invalid syntax hexadecimal color on 8 degit with rails?

I tried to use native the RGBA syntax (#0abf3055) with SASS (in rails 6 app project): background-image: linear-gradient(to right, #0abf3055, #22242F 30%) but I got : Invalid CSS after "": ...
Matrix's user avatar
  • 3,461
0 votes
0 answers
31 views

Identify sass mixin location at rails asset precompilation

I am updating a ruby on rails app. One of the problem I am encountering is that a sass is no longer compiling because of a missing mixin : Sass::SyntaxError: Undefined mixin 'transform'. When I am in ...
Syl's user avatar
  • 3,819
0 votes
1 answer
45 views

I cannot deploy to heroku... I am getting an error that my application.scss is not found because heroku is looking for application.css. Any tips?

When I deploy to heroku open up the logs and load up the server logs. This is the error I am getting... ActionView::Template::Error (The asset "application.css" is not present in the asset ...
TheCodeSommelier's user avatar
0 votes
0 answers
54 views

ParserError: Syntax Error at line: 1, column 29

When attempting to deploy to Heroku while Heroku is running rake assets:precompile, I get this error and have no idea why. here is the code the error is referencing: @import "bootstrap"; ...
Joe Steffen's user avatar
0 votes
0 answers
60 views

Troubleshooting SCSS/CSS files not being found from gem

I am trying to implement the bootstrap_forms gem. The gem is installing fine, and I can use the ruby methods in my views and they work great. The CSS however isn't importing. My app was created using ...
RedBassett's user avatar
  • 3,559
0 votes
0 answers
67 views

Merging Sass compilation scripts in package.json for Rails Admin

I'm encountering an error while integrating Rails Admin into my Rails application. When trying to add the Sass compilation script for Rails Admin in the package.json file as prompted, I'm continuously ...
Ma-Recman's user avatar
1 vote
1 answer
633 views

SASS, Rails 7: Can't find stylesheet to import

I've faced a problem: when I want to import to my main stylesheet a library that I've installed via yarn I received an error that probably I shouldn't receive because I do not control the way it ...
John McMuffin's user avatar
0 votes
0 answers
40 views

How to use Sass variables for view-specific stylesheets in Ruby on Rails without error?

In Ruby Rails 7, I am trying to create a sass stylesheet for a specific view. I want the stylesheet to use a variable defined in another stylesheet. However I get an error when I try to reference the ...
auto's user avatar
  • 1,113
0 votes
0 answers
37 views

Custom ERB inside an SCSS file?

I'm using fonts hosted on AWS S3 inside an SCSS file. So far that's worked with public S3 URLs but for security reasons, I need to remove all public URLs from client-side code. I was hoping to do ...
Pete's user avatar
  • 11
0 votes
0 answers
49 views

sablon gem is not supporting the html text after generate DOCX Report

enter image description here my html tags like this and once i open docx on Microsoft Word all the html text will show into one line do you guys have any idea how to fix this issue on ruby on rails ...
shivani gupta's user avatar

15 30 50 per page
1
2 3 4 5
79