
DateTime causes StackError when config.time_zone set.
5
Rails
Hi,
I have a strange problem
When i do the following method with no config.time_zone set in the application.rb it works.
```ruby
def send_assignment
@assignment = Assignment.find(params[:id])...

Autocomplete a form field
2
General
Hi,
i have the following models:
users, markets, assignments, products, sales,
a user gets an assignment, and then he should enter his sales for the assignment.
i have a sales form with the foll...

Unable to autoload constant OmniauthCallbacksController, expected /home/ec2-user/environment/Assignment/app/controllers/omniauth_callbacks_controller.rb to define it
0
Rails
Hi Guys i am getting an error this is is my Omniauth controller
class OmniauthCallbackController < ApplicationController
def twitter
twitter_account = Current.user.twitter_account...

Extracting Reusable Base Classes In Ruby Discussion
3
General
The cat is still playing in the background 😂

Testing HTTP Requests with Webmock Discussion
3
General
Great episode! Instead of testing private methods directly, I suggest to define a `FakeApiClient` class that extends `ApplicationClient` with some dummy methods. This allows testing public methods....

How can I validate from a gem that doesn't have the proper validation calls in the model?
1
Rails
Hello Folks,
I want to do validation for my mail functionality on my web page. I want to require that a recipient has been entered as well as a subject and body when a new mail is written.
The pr...
wyn replied

HTML Learning Path - Image Element Discussion
1
General
In developer tools, Due to instructor video section, css and box model section are totally hidden.
inonomity replied

Changing Between Contexts In IRB Discussion
0
General

Loops & Blocks in Ruby Discussion
5
General
Hey Collin! Can you give us some examples where you might want to reach for a Proc or a stabby lambda instead of a regular method / function?
Aleksandr Gerasimov replied

Refactoring with Enumerable partition Discussion
0
General

How do I test the order of elements on a rails app page with Rspec / Capybara?
2
Testing
I have a 'Team' index page and I just want to TDD the ordering of the elements on page. My instructions are to validate they are showing most recently created first.
I know how to do the actual i...
felixandrea replied

Practical Decorators & Extracting Concepts Discussion
1
General
this is brillant
Matias H. Leidemer replied

Limiting & Clamping Values in Ruby Discussion
0
General
Yeah! Minimal if statements = Maximum efficiency.
Thomas Blevins posted

Custom Turbo Confirm Modals with Hotwire in Rails Discussion
8
General
Thanks for this
Adrian Marin replied

ActiveRecord Aggregations with composed_of Discussion
1
General
I don't see this feature used often in Rails apps, but it's super powerful for things like this. An easy way of creating Ruby objects like this allows you to really organize functionality instead o...
Marc Köhlbrugge replied

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

Watched the video- One Time payments with Pay and Stripe- (embedded), Form never loads....
4
Rails
HAS anyone been able to get STRIPE EMBEDDED PAYMENTS working?
I followed Collin's course to the T, but when I get to the point where the stripe form is supposed to be inserted into my DIV on the Ap...
Jon Roock replied