Should I continue using Rails 5 or should i use Rails 6?

2
Rails
As we all know the Rails is currently on version 6.0.3 as of May 06, 2020 (6.5 KB) Some developers say that it is still not stable and must need to wait for a little while before migrating to th...
Joan Gabun replied
Solved

Not Rendering with Stimulus & ActionCable

1
Javascript
Hi, I'm having some issues with Stimulus and I was hoping that someone could review this code and see if they see anything that I missed. The Rails part is working and saving to the db. I'm sure t...
Jim Miller replied
Solved

Rails/Sendgrid messages are blocked by receiver's servers

1
Rails
Messages blocked by all receiver's servers(mail.ru, gmail.com). ![console](https://i.imgur.com/Q4sKtSH.png) console log: https://i.imgur.com/Q4sKtSH.png ![Image of Activity in sg](https://i.imgur.c...
Chris Oliver replied
Solved

Tabs with Stimulus

7
Javascript
Hi Chris - I've been following your guide on adding tabs with Stimulus here: https://github.com/excid3/tailwindcss-stimulus-components I am not using Tailwind but everything is working. However, w...
Chuck replied
Solved

How do I calculate a computed value in a model when showing or indexing over that model in its controller?

1
Rails
I'm new to Rails but not new to programming or webdev. I have a `Student` model that uses a service object to pull data from Google Cloud Firestore for its `level` attribute, an integer. I have ho...
Jordan T-H replied
Solved

Working with ActiveRecord and Google Cloud Firestore

1
Rails
I'm pretty new to Rails, and I was wondering what the "right" way of architecting a small app would be given the following scenario. Users create Rooms, then from there add to them a number of refe...
Jordan T-H replied
Solved

Default Order of Associated Model Collection?

5
Databases
Hey all, I'm working on a side project where I recently switched from SQLite to Postgres in preparation for deployment. So, I replaced the `gem sqlite3` with `gem pg` in my Gemfile, ran`bundle i...
Chris Oliver replied
Solved

Rails 6 Form remote: true Error

2
General
Hi, all! I am following along with the video on how to make a chat application using action cable. In the video, I believe Rails 5 is being used, however, I wanted to try it out with Rails 6. Eve...
Jake Smith replied
Solved

Tailwind - own components - yes or no?

4
CSS
i have started with tailwindcss yesterday the first time and must say - wow! but something is confusing me from the beginning. in tutorials/videos etc. everybody talk about: do not write your own ...
Bruno Steinmann replied
Solved

how i plot a profit_loss graph

0
Rails
i have income,expense, user controller i want to plot a graph of currrent user profit i calculated it in model. def total_expense expenses.pluck(:amount).sum end def total_incomes inc...
Ahmedzain posted
Solved

Testing and Session Variables

1
Testing
In my Rails 5 app I am using Pundit for authorization with a custom context. I have a multi-tenant application and I have an `Enrollment` model that joins my `User` and `Tenant` model. This was a...
Dan Tappin replied
Solved

How do I store audio files in production?

2
Rails
Hey guys! I'm working on building a Rails app for a friend of mine - this app will be for her to host episodes of her podcast. I've already decided to use something like [SoundManager](http://www....
Chris Oliver replied
Solved

[SOLVED] Decrypt S/MIME 'file.xml.p7m' with OpenSSL

7
Ruby
I am trying to implement a decoder for a bunch of files (e-bills with extension .xml.p7m) in my rails application within a specific helper. My goal is to upload the encripted files and read them p...
Chris Oliver replied
Solved

Why is application.css working locally but 404 on production server?

5
General
My css works perfect locally, but I get a 404 error for applicaiton.css once deployed. I generated my base app using Jumpstart free version. I confirmed app css is generated on the server in the ...
Chris Oliver replied
Solved

Resolving Draftsman incompatibility with Activerecord

1
Gems / Libraries
I installed the draftsman gem on a new install of jumpstart pro but it is conflicting with Activerecord. Is their a workaround? Bundler could not find compatible versions for gem "activerecord"...
Chris Oliver replied
Solved

how to process images with carrierwave and delay_job

1
Rails
I am trying to process the versions of the images with carrierware I want to send that process to a queue
Juan Alexander Rodríguez Álvarez replied
Solved

Did I forget to do a migration?

1
Rails
I have a profile model and controller in Rails, and it works all well and good except when I call profile_path or simply "profile". I try and create: ``` <%= link_to current_user.profile_path %...
Chris Oliver replied
Solved

Displaying User presence when tracking online Users with ActionCable

2
Rails
Hi, I'm wondering on my current implementation for tracking and displaying user online presence. I followed "Realtime Online User Tracking with ActionCable" for the most part and right now I'm usi...
Chris Oliver replied
Solved

jquery_ujs and rails-ujs problem ajax page

1
Rails
hello everyone. i am new in rails and ruby , i just started like 1 week ago . i trying to do a chat between 2 people on rails, with jquery for the ajax part. everything work, but i got this err...
pikooli replied
Solved

Flash alert/notification messages not displaying for the 'Log In' and 'Log Out' views

1
Rails
The flash alert/notification for the 'Log In' and 'Log Out' views are not displayed on the screen when a user logs in or out of the Rails application. I am not getting any errrors or warnings in ...
Alfred Montalvo Jr replied
Solved