Skip to main content
Filter by
Sorted by
Tagged with
3 votes
1 answer
718 views

I'm unable to get stimulus and importmaps to read files from an app engine. The current project I've been tasked to do involves me upgrading all legacy engines to use importmaps and stimulus JS. The ...
Dave D's user avatar
  • 948
1 vote
1 answer
115 views

Asset hero_banner.jpg was not declared to be precompiled in production. Declare links to your assets in app/assets/config/manifest.js. //= link hero_banner.jpg Rails.application.config.assets.paths &...
Krapi Rastogi's user avatar
1 vote
1 answer
80 views

Layouts are present in app/apps/themes/default_theme/views/layouts I have a frontend controller that renders layouts of different themes based on params. For now , lets assume it renders default_theme....
Krapi Rastogi's user avatar
1 vote
1 answer
240 views

I have a gem which conditionally loads RailsWarden::Manager, based on a flag in the config/initializers/mygem.rb file: module Mygem class Railtie < Rails::Railtie initializer "...
KNejad's user avatar
  • 2,577
5 votes
1 answer
353 views

I'm looking into updating one of my favorite CMSs to Rails 7 that have been archived on github (PushType). Only I haven't coded Rails since Rails 6. Apparently, something about autoloading methods ...
Michael K Madison's user avatar
0 votes
2 answers
138 views

I installed activeadmin in a rails engine that I mounted in my main application. When I try to access the home page I get the following error: uninitialized constant BackOffice::Admin The code in lib/...
Mina's user avatar
  • 1
11 votes
2 answers
4k views

I just upgraded an Engine from Rails 5 to Rails 7. This error started appearing at Rails 6.1.7.6, but I thought perhaps it might've been fixed in Rails 7. Here's the error I get when I run rspec An ...
John's user avatar
  • 9,514
2 votes
0 answers
198 views

Let’s say I’m working on a product called Friendly Organizational Operator, for which we use FOO as the acronym. I want to create a new engine to encapsulate a particular piece of functionality we’ll ...
Pioz's user avatar
  • 6,331
0 votes
1 answer
446 views

I have a Rails application that is using multiple gems. Each gem provides assets, that are added to the Rails asset path: main app admin engine with customised forms wysiwyg engine I want to ...
Stephen Nelson's user avatar
3 votes
1 answer
1k views

I have some tests located in an engine called "Blorgh". I simply test my engine by running the following command in the root directory of my engine's repository. rails test ... 19 runs, 8 ...
SkyNT's user avatar
  • 803
2 votes
1 answer
2k views

So I have a file not found problem. I have an engine that works in development mode in the engines test/dummy app, the engine allows the editing of sass variables and stores them in a theme table, the ...
jamesc's user avatar
  • 12.9k
10 votes
2 answers
3k views

How to use tailwind in a rails engine? According to the documentation supplying a css argument to the Rails generator should work Rails 7.0.2.2 engine generated using rails plugin new tailtest --...
jamesc's user avatar
  • 12.9k
0 votes
1 answer
330 views

I have a complex Rails app and I want to extract some core functionality into an engine so that I can reuse the models etc in other Rails apps. I've been following the official documentation for ...
SkyNT's user avatar
  • 803
12 votes
2 answers
9k views

I have opened an issue in the importmap-rails gem github repository here about this but thought I'd throw the question out here in case anyone might have a workaround This is what I have discovered so ...
jamesc's user avatar
  • 12.9k
1 vote
0 answers
361 views

I am using a Rails Engine as a Gem in my Rails Application. Now I have inherited a class from the rails engine in a model of my rails app. 1. Rails App Model Code class AppModelOne < EngineGem::...
Supriyo Mahanta's user avatar
0 votes
1 answer
303 views

I am working on a rails engine which includes bootstrap-sass. I am trying to use a bootstrap variable in my styles, but I'm getting an error. I am trying to follow the documentation here: https://www....
Fred Willmore's user avatar
2 votes
1 answer
495 views

So I building an application using Rails 6. I have implemented some core features of the app using Rails Engines. The name of the Engine Baseblog, and I have 2 models for it called Author and Post. An ...
Promise Preston's user avatar
1 vote
1 answer
188 views

I'm building my first Rails engine and getting pretty confused already defining the associations between two models. For the reason of ease, let's say the name of the engine is Blorg, having two ...
Kevin Liebholz's user avatar
1 vote
0 answers
958 views

I am writing an engine and I want to include a task in it. I wrote my file .rake, bus it isn't listed with rake --task. If I try to run int anyway I get: ❯ rake what2find:index rake aborted! Don't ...
pcha's user avatar
  • 78
1 vote
0 answers
171 views

I'm using a rails engine with webpacker and compiling it inside my rails application but I need to copy paste copiled engine manifest.json file inside webpacker:compile manifest.json. I want to load a ...
Shashank Tripathi's user avatar
1 vote
0 answers
199 views

I have one main rails app, and I have an engine within it, now the engine has a different test, I need to test one controller which is using main app MailerHelper module. How can I access in my spec. ...
Kamal Panhwar's user avatar
0 votes
1 answer
112 views

I'm working on a project where I have a Rails application (rails 4.2.5) that incorporates a gem, which is a Rails Engine. I'm currently working on moving the route definitions from the main ...
Fred Willmore's user avatar
0 votes
2 answers
1k views

I'm working inside a Rails engine where I have a GraphQL type. module RailsEngine module Graph module RailsEngine module Types MyClass = GraphQL::ObjectType.define do # ...
anna's user avatar
  • 85
0 votes
1 answer
411 views

We have two Rails applications using Resque and Redis. Resque and Redis are configured identically on both apps, which are both using Rails 4.2 and Resque 1.27.4. However, the availability of Resque ...
pjmorse's user avatar
  • 9,334
1 vote
0 answers
501 views

I see lots of instructions on how to add a directory to Rails eager load paths and auto load paths, but none on how to remove a directory. Here's my problem. I've inherited a project with extremely ...
John Small's user avatar

1
2 3 4 5
16