Authentication Generator and Registration Discussion

0
General
are there any generators for jwt or token based for sperate frontend
v-d-k posted

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

Parsing Ruby with Prism Discussion

1
General
Mono sound only to left ear really annoys me :D
Baris Ozmen replied

Ecommerce multi-step checkout with guest accounts

11
Rails
Hello, I've been thinking about the best approach for implementing a checkout scenario in a custom ecommerce site I've been developing and wanted to see if anyone here had advice to share. We're n...
sabrinacollinsss581 replied

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

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...

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 ...

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

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

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...

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

Graphql on Rails

7
Rails
Hi Chris! Could you please publish a lesson or guide about using Graphql with Rails? Thanks!
Danny Garcia replied

Base62 Decoding Short Codes Discussion

5
General
Intresting, I had the same requirement so I created this gem https://github.com/xiaohui-zhangxh/xencoder , it can encode/decode interger to BaseX and prevent it to be decoded without seed