Search Results for "how-to-use-dependency-injection-in-ruby-discussion"
Lessons
Forum Threads
How to use Dependency Injection in Ruby Discussion
0
General
Check if class was instantiated and instance method was called
1
Testing
Hey guys! I'd like to figure out a way to test piece of code that suppose to create an instance of particular class. Here is an example:
``` ruby
class Subject
def call
...
end
end
class ...
Alex Musayev replied
Solved
How to use Solid Queue in Rails with Active Job Discussion
12
General
What's great about the puma plugin is the cost savings when running on something like Heroku. Only one dyno needed for small apps including a Queue. Something that was quite expensive before becaus...
Matthias replied
Cannot create Rails App - gem issues "Ignoring nokogiri" and other gems
5
Rails
When I try to create a new Rails App it fails. I am on Big Sur 11.3, Ruby 2.7.2, and when type rails-v shows 6.0.3.4 but also ignoring quite a few gems including nokogiri and 6-7 others. I have tri...
Ryan Mindigo replied
How should I bundle stimulus_reflex with esbuild in Rails 7
3
Rails
When I use webpacker gem, it is so easy to install stimulus reflex using stimulus_reflex gem in Rails 6.
But in Rails 7, some problems occurs as follows:
```
$ bundle add stimulus_reflex
$ rails s...
Ole Torp replied
Rails for Beginners Part 24: OmniAuth 2.0 URLs Discussion
53
General
I get an error `No route matches [GET] "/auth/twitter"` -- feels like some rails magic I missed :/
Philipp S. replied
How to use Uppy with ActiveStorage Discussion
37
General
Thanks for this!
Brian Carpenter replied
GitHub Actions with Ruby on Rails: Setting up Continuous Integration Discussion
19
General
Congratulations on the video was very good, I will try today
Ignacio Alonso replied
How to use Javascript via Webpacker in Rails 6 Discussion
17
General
Alternatively to the webpacker way of require the flatpicker css in the `packs/application.js` you can do someting like:
```
/*
*= require flatpicker/dist/flatpicker
*/
```
In your rails `app/a...
Tony Dehnke replied
Having some Issues regarding Rails 5.2 upgrade
3
Rails
Hi everyone,
I was working on using ActiveStorage on an app I had begun like 6month to 1year ago. So Rails wasn't the right version and I put 'gem 'rails', '~> 5.2', '>= 5.2.2' ' in my Gemfi...
Ernesto Tagwerker replied
Render partial via AJAX without JQuery
9
Javascript
I've got a standard Comment.model - I'm trying to use AJAX to render partial. Using JQuery works but I'm trying to use VanillaJS only. The AJAX is working but it's rendering the markup inside of th...
Solved
Deploy Ubuntu 18.04 Bionic Beaver Discussion
79
General
Thanks btihen! I'll get the tutorial updated for its changes shortly!
Preferences & Settings with ActiveRecord::Store Discussion
24
General
Great stuff
sthapit replied
Decorators From Scratch Discussion
17
General
Nailed it. Thanks again Chris - could never find a good explanation on Decorators, hence I never used them, will be sure to use them now!
Daniel Jackson replied
Setup Ubuntu 16.04 Xenial Xerus Discussion
110
General
Don't use "ssh-keygen -t rsa", use "-t dsa", much safer and not owned by NSA.... ;-)
Someone replied
Subscriptions with Stripe Discussion
96
General
Hey Chris! Not sure if this is just me, but there seems a problem downloading the video's.
Activity Feed From Scratch Discussion
17
General
Could you post the source code to this?
Chris Oliver replied
Multitenancy with the Apartment gem Discussion
80
General
Hi, Chris video is not loading!
Prajjwal Gupta replied
Introduction to Importing from CSV Discussion
46
General
thanks
HP replied
File Uploads with Refile Discussion
94
General
Awesome.
Someone replied