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 have one application for multiple URL's

1
Rails
We have a requirement where are rails application should be available on multiple domains like abc.com and xyz.com based on domain it will only show a different logo all the rest is identical. What...
Chris Oliver replied
Solved

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

Realtime browser updates with Cable Ready Discussion

9
General
Great episode. Just as a note to anybody watching this who might be wondering, cable_ready pairs perfectly well with Stimulus Reflex as well. You can simply include the cable_ready call in your *...
Joseph Clarke 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

Displaying an address from a selected location

12
Javascript
So in a form I have locations which are set in a `collection_select` statement in the form. Each location has a name (Dairy Queen, McDondalds, etc) and has an address in the Location model. When ...
shakycode replied

How to build a GCS file browser & manager in Rails?

0
Rails
Hi Chris, Awesome work with GoRails!!! I'm a big fan! I'd like to build a Google Cloud Storage bucket file browser and manager. The key features would be browsing files on the bucket and downloa...
Adam Decker posted

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

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

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