Rails new with TailwindCSS Discussion
0
General
can you explain in detail that why you didn't use bin/dev? I couldn't get your point
How to Optimize ActiveRecord Queries with Large Data Sets in Rails 7?
5
General
I'm working with a large dataset in Rails 7 and some of my Active Record queries are getting slow. I've tried using .includes and .select, but performance still lags. What are the best practices fo...
Calendar with Recurring Events Error Message - undefined method `has_key?' for "null":String
1
Rails
Hi I'm trying to follow Chris's Recurring events tutorial and I'm coming across this error message...NoMethodError in EventsController#indexundefined method `has_key?' for "null":StringExtracted so...
Meta Tags from Scratch with Current Attributes, ActiveModel & render_in Discussion
6
General
Hey Chris! Sounds like you’re doing awesome work! Helping Rails developers build apps is a fantastic contribution. Keep it up!
Bradford Gesen replied
Dedicated Servers i want rent 100
2
Servers
Dedicated Servers
CPU 16 cores, 3GHz or higher, example AMD 5950x
128GB RAM or more
1TB or more NVME SSD
500 Mbps+ channel, 100TB/month traffic
Davidmenk321 replied
How do I generate SEO Friendly URL's for filter combinations in Rails?
6
General
I have a site where the user can apply a combination of multiple filters.
To improve the SEO on the site I would like to have the URL in a human-readable format when filters are applied.
I would ...
Why to purchase the stripe course or Showing Off Game Nanny
2
Showcase
tldr; No question here, just a show case.
I recently purchased [Chris' Stripe course](https://courses.gorails.com/payments-with-stripe-and-rails-master-class) and used it as a baseline for the eco...
kumar br replied
Rails 7.1 Authentication From Scratch - Test Helpers
2
Testing
I've implemented the Rails authentication in my 7.1 app but was wondering how to go about stubbing the `current_user` or `session` in my RSpec Request specs.
I'm normally used to have a Devise or...
Russell Beckwith replied
How do I test the order of elements on a rails app page with Rspec / Capybara?
3
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...
Russell Beckwith replied
Test some simple javascript with Minitest and Capybara
1
Testing
I'm seeking assistance on testing JavaScript that executes on the response page after a POST request.
So I have something like this
```ruby
class YourControllerTest < ActionDispatch::Integrati...
Russell Beckwith replied
What to use for multistep(wizards) in 2016?
3
General
Hey Chris,
As of July 2016 what gem/solution would you use to create multistep forms? I have found a couple of solutions but couldn't decide what to choose. They kinda seemed a bit obsolete. It's ...
Lannie Chaput replied
Solved
Deploying our Rails Blog to Production Discussion
17
General
Hello Chris, thank you very much for you do to help us... I'm trying to deploy the blog but when building it on render I'm getting an error... Your RubyGems version (3.0.3.1) has a bug that preven...
Rails World 2023: Powerful Rails Features You Might Not Know Talk Slides Discussion
3
General
I can't wait for the video of your conf !
Bradford Gesen replied
Ruby Module Function Method Discussion
6
General
We especially love how splitting can be used not just as an attack but as a gesture of cooperation. It’s really wholesome when someone gives you mass just to help you out — those are the little mom...
Luis Reid replied
Installing ruby_opencv gem results in cannot find opencv_contrib error
11
Gems / Libraries
I am trying to install the ruby_opencv gem but it can't find opencv_contrib. I used the command 'gem install ruby-opencv -- --with-opencv-dir=/mnt/c/Users/wjones/sites/musclesound-rails/opencv/my_b...
Bradford Gesen replied
Creating New Blog Posts Discussion
1
General
Hi!
I don't understand why we must instantiate a BlogPost object in the `new` function, if we are also doing so in the `create` function.
It is also not clear to me how did we map the <%= form....
Bradford Gesen replied
Rich Text Blog Posts with ActionText Discussion
19
General
Hi Chris, thanks for the video. I was wondering how do I truncate the text on the index.html page? I only want to show 130 characters of the content (previously body).
<%= truncate(blog_post.c...
Pat Fitzner replied
Authenticating Blog Admin Pages Discussion
19
General
Hi,
Is it necessary to add @blog_post behind the edit_blog_post_path in the last part of the video or can that be left out as well? <%= link_to "Edit", edit_blog_post_path if user_signed_in? %>
how do i create two users at the the same time with two different session? P.S I am trying to create a game where two players are created at once being of same class(Player)
1
Rails
I am trying to create a game where two players are created at once being of same class(Player).
Leroy Diaz replied
Problem with Stimulus and counter_culture gem (counter_cache)
5
Rails
Hy all, i have a problem with the counter_culture gem with my stimulus controller.
I have installed the gem and configured all.
I have 3 model :
Thats working fine for this relation: Category hav...
Larry Knight replied