Solving Active Storage InvalidAuthencityToken Error

0
Rails
I have an application which is on lvh.me and i am trying to upload image using trix editor from my subdomain sample.lvh.me but for some reason i keep getting this error ``` Started POST "/rails/a...
Henry posted

Rails7 Rest API authentication

1
Rails
Good day Devs, I'd like to inquire about the most secure and effective method for integrating #API authentication in #Rails. Specifically, I'm comparing the options of using devise and devise-api...
Marianyatt replied

Devise

9
Rails
I watched the Gorails Rails Password Reset 2 part video for password reset. My question is my devise setup only create encrypted_password, and reset_password_token, not password or token columns. C...
paxtonleiny replied

I'm lost and can't find the way out

18
Rails
So I'm in the middle of this project and I thought I could figure it out on my own, but it appears I am in over my head here. So any advice/help you can give me would be great. Basically I'm tryi...
Andrea Fomera replied
Solved

Capistrano deploy fail to do rake db migrate

0
Rails
I follow this tutorial from crabs code and do all as in tutorial but when i do cap production deploy initial capistrano fail to do rake db migrate. I think is because capistrano not do rake db crea...
Reni-amorim posted

I miss App-Folders and Files after create a app

0
Rails
Hello and good day to all. I'm new to RVM, Ruby and Rails and I have a problem. I use RVM. If I create a new RAILS app with the following command: rails new appname -d mysql Do I get the impress...
RubySnug posted

How do I create a sortable & searchable table with pagination?

2
Rails
Not really sure how to set this up with the different query params. Could someone point me in the right direction? Thanks!
Kevin Gutowski replied

Count the number of pages in a pdf

0
Rails
Hello! I am trying to count the number of pages in a PDF for a print service using PDF-reader (https://github.com/yob/pdf-reader). Here's what I have so far but, I only get a hash of {"identified...
Nick Seferos posted

2 sites... 1 DB?

8
Rails
Hello all! It's been a while since i was here, but i am back! So today I would like to get some opinions on a project I am working on. So here we go... What would be the best way to architect 2/3...
Fugee Ohu replied

About Importmap rails gem

8
Rails
Hi Chris, Will you make a video about https://github.com/rails/importmap-rails/, what will be the benefits and hidden costs. Best Regards.
Michael Prince replied

[delegated_type] How to query a collection of entries including the (entryable) sub-entries.

0
Rails
I need to query a collection of entries based on a range of dates and then sum an attribute of the sub-entry using the delegated_type method. Something like this: ``` Entry.where(performed_at: Da...
William Cunningham posted

How to limit comment nesting with Hotwire and Turbo?

4
Rails
I asked this question in the discussion on the tutorial itself, but there doesn’t seem to be any activity there. I went through the nested comments series, and the last three videos focused on real...
Solved

How do i log user out from subdomain using devise

0
Rails
hi guys i am trying to build a blog platform like hashnode/substack where user register on root domain and create blog. I am currently using devise and i have set up subdomain routing. My question ...
Henry posted

Edit user profile with devise if user signed up with facebook omniauth

3
Rails
Hello. I use 2 gems (gem 'devise' and gem 'omniauth-facebook'). The user is able both to sign_in ou sign_up with facebook. If a User did a regular sign up in the past, he's found by email, and if ...
Ubuntus replied

Want to stay up-to-date with Ruby on Rails?

Join 92,051+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.