Dynamically create sass variables in rails

6
CSS
I have a multi-tenant app where each tenant can set their primary and accent colors. Is there a way i can grab those values and insert them into a sass file on page load? I"m using rails 5 and post...
Matt Taylor replied
Solved

What is the best way to add a dynamic active class to a link with Tailwind CSS?

6
CSS
From what I understand the "active variant" is not enabled by default? Where exactly do you enable that with rails? Is there another way to add and remove parts of classes to put together an active...
Solved

Using React

19
Rails
I'm trying to learn how to use react in my rails 5 app. I've just finished following Kenny Hibino's you tube series for his medium clone. He used react-rails gem, but then realised he wanted to u...
Rio replied
Solved

API

2
General
Hi everyone, I have recently set on a mission to learn more about APIs. I get some data from a external JSON API but have come a cross an issue that I need some help with. I’ve defined my cars v...
Solved

How do I create an attendance form for student attendance?

9
General
I've been racking my brain and just need to ask for help on the creating this function in my app. **Scope:** simple app for non-profit for tracking student attendance What I've done: * created the...
Solved

Extend Sprockets to bundle mustache templates

3
Rails
I'm trying to include some Mustache templates into the main JS bundle. The idea is to take `/app/templates/*.mustache` files, generate a JSON object, and set a window-level variable, like this: ``...
Solved

Format of created_at for date range using Searchkick

12
Rails
I am using searchkick to build out a searchform that has a couple different parts to it and searches across multiple models. I am specifically trying to get a date range setup so the user can searc...
Chris Oliver replied
Solved

Got error message when I install Capistrano, stuck at deployment for two days.

23
Servers
I spent 2 days followed "Deploy Ruby On Rails onUbuntu 18.04 Bionic Beaver" , tried to deploy my rails project, now i'm out of my mind! I have repeated whole process for more than 4 times, always ...
Solved

Why isn't the Boostrap Dropdown not working in the menu after loging in ?

10
Javascript
Hello, I started an app using the Jumpstart shortcut but didn't find out how and why the dropdown menu with the user's photo wasn't working at all... I guess it is because of javascript but after c...
Damian Nelwep replied
Solved

How do I make an app to get a video by url from youtube download it / process it/ and uploaded to a local db?

2
Gems / Libraries
I liked the shrine tutorials and would like to use that as an upload to local disk solution. I also found a gem called youtube-dl (https://github.com/layer8x/youtube-dl.rb) to help download from Yo...
Solved

Webpack assets doesn't work after deployment

15
General
Hi, I have been using happily rails until I decided to try stimulusJS. In the begining was great. I saw great value using it. The thing is the assets in the pack folder are not compiled when doing ...
Juan S. Caro replied
Solved

Webpacker noob - so I saw your video and im using rails 6

3
Rails
how does one go by installing https://github.com/metafizzy/isotope with webpacker? ``` yarn add isotope-layout ``` ``` require('isotope-layout') ``` now I get an error ``` .col-md-9 ...
Gus P replied
Solved

How to have one application for multiple URL's

1
Rails
We have a requirement where are rails application should be available on multiple domains like abc.com and xyz.com based on domain it will only show a different logo all the rest is identical. What...
Chris Oliver replied
Solved

fdsfds

0
General
Solved

How do I fork turbo and use it as my turbo version

1
Rails
How do I fork turbo and use it as my turbo version in a rails 6 app, I tried linking to the github of my forked turbo repo in package.json but it gave me an error couldnt find hotwire
Solved

I want to use devise gem for normal authentication and api authentication with devise-jwt gem. Is it possible?

1
Rails
Hi huys! I have an problem with devise-jwt gem. I have an default rails application. I want to use devise gem for normal authentication and api authentication with devise-jwt gem. But they can no...
Carlos Vazquez replied
Solved

Anchors being ignored when added to redirect_to path in controller

2
Rails
I feel I am missing something fundamental, or maybe just silly, when it comes to this issue. I am utilizing linking to anchors in most places in an app I am building and all is working well with l...
Miri Lama replied
Solved

Search Filters/Report Generator

3
Rails
I am working on a project for a client that consists of a primary jobs model that has a number of forms (other models) within it. I am needing to build out search functionality that searches throu...
RJ McCollam replied
Solved

Javascript function firing on page load

1
Javascript
Hi, I'm building my first web app using Jumpstart and I'm running into a weird issue with the Javascript in one of my show views. The issue I have is that instead of firing on click, the toggleC...
benjaminhouy replied
Solved

Newbie question trying to understand collection_check_boxes method

3
Rails
Hi, I am new to Rails, and I am trying to create checkboxes in a view. I came across this method: https://apidock.com/rails/v4.0.2/ActionView/Helpers/FormOptionsHelper/collection_check_boxes What ...
Pauline Velarde replied
Solved