Fugee Ohu

Joined

160 Experience
0 Lessons Completed
0 Questions Solved

Activity

Posted in How can I pass an array to where includes clause

@items=Item.where(category_id IN ()
Anyone know the syntax? I'm trying to add to the category id's of the descendant categories (if any) in addition

Posted in 2 sites... 1 DB?

I don't see where there's any issue other than activestorage I have two sites running from the same database but I can't figure out how to display images

Posted in How do I add a favicon in rails 6 through packs

How do I add a favicon in rails 6 through packs

Posted in rails 6 favicon.ico Webpacker can't find favicon.ico

app/javascripts/packs/application.js:
import "favicons"

app/javascripts/packs/favicons.js:
const faviconsContext = require.context(
‘!!file-loader?name=../images/favicons/[name].[ext]!.’,
true,
/.(svg|png|ico|xml|json)$/
);faviconsContext.keys().forEach(faviconsContext);

Screencast tutorials to help you learn Ruby on Rails, Javascript, Hotwire, Turbo, Stimulus.js, PostgreSQL, MySQL, Ubuntu, and more.

© 2024 GoRails, LLC. All rights reserved.