Ruby on Rails Community Forum

how do implement a rails popularity/trending algorithm!!

1
General
* I'm making a web app and I want to sort through a model based on popularity/trendiness, kind of like reddit/hacker news. [192.168.0.1](https://19216801.onl/) I want to determine the popularity ba...
Chris Oliver replied

Ruby on Rails ActionMailer Images Issue

1
General
I'm trying to use embedded images in my E-Mail, but if I try to load a file from my image folder as a header, it's not displaying in the email: The image is an inline attachment: def export_b...
Chris Oliver replied

rails new demo without getting a error message?

1
Rails
I did the basic installtion from a book I'm reading and i get the following error message when i type in the command `rails new demo` in my terminal. ``` Michaels-MacBook-Air:~ michaeljonathanamay...
Michael Amay replied

Any way to reduce complexity passing JSON to Vue.js component?

0
Rails
Hi, I'm trying to figure out a way to reduce the complexity of passing a JSON to a Vue.js component. Currently I've got something like this placed on a model scope, ``` scope :to_vue, -> (id)...
Eduard Garcia posted

How do I exclude images in my auto formatting of PDF links?

0
CSS
I added some CSS to my site to put a font a https://birthdaywishes.onl/ wesome PDF icon in front of every hyperlink that links to a PDF. It looks great, but there are a lot of instances where there...
AustinLan posted

Does anyone have a pre-made stylesheet for wiki pages?

0
General
Although I wouldn’t mind making a custom style sheet, it would be quicker to find a style sheet that’s already been made. I’m currently trying to make a wiki page for something and I don’t want to ...
MaverickLan posted

Bizarre cache issue

0
General
How do I force the browser to always refresh parts or all of the content? I have a bizzare issue where the browser is caching parts of the site. For example I have a 'History' for a model row in ...
Dan Tappin posted

how can i access boolean value to other controller in rails

0
Rails
i have ProjectSite model and ManagerRemark model related to many to one association. my MangerRemark model remark string field and decision boolean value true and false. i want to access that boole...
anuj posted

How do you figure out what and how to load the css/scss assets with Webpacker

0
Rails
For Bootstrap you added to `application.scss `(I may have named my folder differently: ``` import "bootstrap" import 'bootstrap/dist/js/bootstrap' ``` and ``` @import '../css/bootstrap_custom'; @i...
Greg S posted

Expanding beyond a basic Rails CRUD site.

0
General
Hello everyone,,, So I've got a fairly basic CRUD style rails app, which has a list of Gins, Distilleries and and blog Posts. I'd like to expand it quite significantly in the following ways: Add ...
Konhaivo12 posted

Can someone help with some CSS please

2
General
I am working on a website and i'm trying to change the vertical height of the header of one of my pages. I only want the header of this page to change and not all of the headers across the whole we...
Hans Petter Lie-Nielsen replied

Error installing gem pg on Mac with Postgress.app

0
Rails
The pg gem will not install. Getting: ``` ERROR: Error installing pg: ERROR: Failed to build gem native extension. current directory: /Library/Ruby/Gems/2.3.0/gems/pg-1.1.4/ext /System/Libra...
John Petit posted

How to save DOM elements in the database?

2
Rails
Hi I'm working on my very first "real" Rails project, and it might be a bit to advanced for a newbie like me. But here we go (sorry for the long and confusing rumble). **Goal:** I want to save the...
Magnus von Bromsen replied

Problem in uninstalling rails and Ruby from ubuntu 16.

0
Rails
Is there any way to uninstall rails 6.0.1 from ubuntu 16 and ruby as well because i have installed ruby through rbenv. Please suggest any standard way to uninstall it. i am beginner in rails.
Dilip posted

Best resources/way for learning Ruby for a complete newbie?

0
General
I just got an internship and I am going to be programming in Ruby on Rails. I am going to be learning Ruby on the job but want to learn it on the side and accelerate my learning so I can start cont...
wolf kinara posted

Is it just me does anyone else feel that javascript world has gone crazy??

0
General
To begin with, there are so many js frameworks out there that's enough to intimidate a newbie who wants to learn "just javascript". Things in js world change so fast that we can barely keep up. I'm...
MerchanLobo posted

Is it necessary to overengineer Java programme??

0
General
Previously I have been using Laravel to develop RESTful API for my work. But I decided to expand my programming horizon by learning additional language, and seems like a strict type language can he...
MerchanLobo posted

Handling large-ish Excel files with Apache POI

0
General
Hi, I'm working on an application which takes Excel files as inputs. These files may have some tens of columns and several hundred thousand rows. They reach 50-60mb in size on the disk. [hotmail.c...
Tonnystark posted

Force client browser to clear cache after tenant switch

0
General
I have a Rail app where the user can switch tenants (activerecord_acts_as_tenant). The issue is that in production the browser is caching the old client HTML etc. I came across this: https://sta...
Dan Tappin posted

Starting to learn Ruby/Rails?

0
Ruby
I mostly program in Python, but I'd like to learn Ruby and Ruby on Rails. Where would you recommend starting? Are there good tutorial series to read/watch? Good books to get?
Robert Rose posted

Learning Ruby on Rails? Join our newsletter.

We won't send you spam. Unsubscribe at any time.