Websockets with Rails(Passenger) - Error during WebSocket handshake: Unexpected response code: 400

1
Rails
Hi all, I am trying to deploy ActionCable and Rails 5 To Production server (DigitalOcean). I have followed all steps mention in the Gorails video here: https://gorails.com/episodes/deploy-actionca...
Rizal Yusoff replied

Error 500 on Heroku (app Ruby on Rails)

0
Rails
Hello , I created an app on Ruby on Rails, and everything is ok on my localhost. But on Heroku, it doesn't work : *We’re sorry, but something went wrong. If you are the application owner check ...

How to use the Pay gem to accept Payments in Rails Discussion

8
General
Hey Chris, What should we do if we just want to authorize payments without attaching a card to a user? Maybe we could simply delete the card after the payment but I don't even see a way to properly...
Christopher Lam replied

Why this error ? how I fix this.

4
Rails
I have a form that has fields from two different tables, the Patients table and the Addresses table. Please make a search field to use only one patient (Patient) and return his data, up to the fiel...
Thomaz Wanderbruck Schmidt replied

Introduction to Stimulus Reflex Discussion

43
General
woooooo... this is sooooo cooool. Thanks Chris for all the good content you giving us 👏. You making likes Rails every days. Respect 🙏
Jason Eastwood replied

How to test helpers in Rails with Devise current_user and ActionView::TestCase Discussion

1
General
Thanks Chris! Update: Rubocop recommend to use (Style/TrivialAccessors: Use attr_reader to define trivial reader methods.) attr_reader :current_user

How to write System Tests in Rails Discussion

18
General
Really loving this testing series. I've been using RSpec for years but it looks like Minitest now covers a lot of the functionality that made me choose RSpec back then. One of the things I don't l...
Brian Gilbank replied

Slow jobs on Sidekiq

0
Gems / Libraries
In my application I have a job which makes several database queries (mysql) to recalculate certain fields of a model. (A kind of counter_caches). Launching individually these methods take about 10...
Roberto Hugo Menéndez posted

Infinite Scroll in Rails with Stimulus.js Discussion

25
General
This is super slick. I wonder how easily one could append the query parameter in the URL to reflect the current page? Could `History.replaceState()` handle the job?
Kevin Urbaum replied

How to use Bootstrap with Webpack & Rails Discussion

50
General
Thanks for posting this and the previous video on using tailwindcss. It's helpful to see the main themes reinforced in each of the videos. One thing that I'm struggling with is what seems like a vi...
bradley replied

Multiuser Live Video Chat in Rails Discussion

7
General
*me clapping my hands like a monkey when I see the final result after losing complete track in the js part*

Trying to emulate `belongs_to trough` using `has_one trough` but having problems?.

5
General
Hello, Imagine a travel website where you have HotelOwners and Tourists. When they start a conversation, the app creates a join model named Conversation using has_many through. It's a classic many...
jesusjavier replied

Are "nonclass singleton methods as rare as class methods are common"

0
General
In his 2011 book "Eloquent Ruby", Russ Olsen makes the states that "nonclass singleton methods [he refers to instance methods] are as rare as class methods are common." He makes the point that th...
TrevorGage posted

Do you guys enjoy VSCode for writing Java?

1
General
Hey I've been using IntelliJ ever since I started using Java and I wouldn't give it up for anything else, but I've been only using my student license to do so. My student license expired yesterday ...

File Uploads with Refile Discussion

94
General
Awesome.
Someone replied

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

2
General
app/javascripts/packs/application.js: import "favicons" app/javascripts/packs/favicons.js: const faviconsContext = require.context( ‘!!file-loader?name=../images/favicons/[name].[ext]!.’, true...
Stéphane Paquet replied

Debugging need help

1
Rails
Hello Is there a method to debug hosted ruby on rails application and check the request and response object

[AskJS] Are there Babel plugins that optimize code for special use cases?

1
General
Hey all! I was thinking a bit - I don't really use generators, and I suspect that might be because you can't just use map, filter etc. Of course you can use the [...gen] way, but that gets very mem...
aostv replied

How do I find a Rails mentor?

1
Rails
I've been developing Rails apps since 2012 but my main app is still on 3.2.14 so I'm quite behind on all the new tech. I'm slowly developing a new app on the latest version but I find it slow going...
Peter vande Put replied

Trix editor is not displaying properly in Rails 6

2
Rails
Hello - I have installed Action Text in my Rails 6 app and made corresponding changes to my blog / controller, _form to have rich_text_area show. Problem is that despite requiring actiontext in my...
Rajiv replied

Want to stay up-to-date with Ruby on Rails?

Join 91,035+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.