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

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

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? %>

Realtime Domain Updates with Turbo Refreshes & Morph Discussion

0
General
Really cool updates slope
Brian Woods posted

Hatchbox: teams

5
General
Hello, what are your plans for developing Teams feature on Hatchbox? Currently I can invite someone by giving them status "admin", "member" or no status at all. The problem is, any invited person h...
Francisco Holcomb replied

How do I fix Github Action test error caused by "DevToolsActivePort file doesn't exist"?

1
Testing
Hey - I have a Github Action test file as below. When I run the CI, the system tests which use Selenium WebDriver do not pass. The following error occurs: ``` Selenium::WebDriver::Error::UnknownE...

solidus

8
General
I am creating my e commerce using solidus. In the admin backend, I pload products but then they are not reflected in the frontend...anyone who has come accross this?
Charlotte May replied

Asset Pipeline

2
General
What are some excellent resources to get a good foundational understanding of asset pipeline, esbuild, import maps, js bundling. I have a decent knowledge of Rails, but I have trouble understanding...
Francisco Holcomb 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...

Help with concurrency

5
Ruby
Hi everyone, how’s it going? I’m a Go developer transitioning to Ruby due to a job change. Typically, I solve various problems in web apps using Go’s lightweight threads (goroutines). For example, ...
Flappy Dunk replied

How to get started?

2
General
Hi I'm a complete beginner to Rails, however I know other backend languages. I see a lot of courses here. Can anyone tell me the series of courses I should take up here? Thanks

Any HTML→PDF gem that supports modern CSS (flex/grid) and works on Ruby 2.5.1 + Rails 5.0.7.2?

0
Rails
Background --------- I have an existing Rails 5.0.7.2 app running on Ruby 2.5.1. In several places I generate invoices as HTML (I build a full HTML string by replacing template tags server-side) an...
babvijayb posted

How to Migrate attr_encrypted to Rails 7 Encryption Discussion

2
General
Thank you Chris, really nice :)
MartyLShaw replied

Subscriptions with Pay and Stripe Discussion

2
General
Excellent lesson! Thanks for making this look easy, and actually be easy with the pay gem.
yu esther replied

Ruby on Rails 3 Tutorial Book Question

3
General
Im following the PDF version of this book and keep having an issue with different versions of gems being compatible. I had to skip the TDD section all together because I couldnt get a compatible ve...
ScottLDanielson replied

Black Friday 2025 Sale Discussion

2
General
Who managed to buy something?
stres sguide replied