Adolfo Alvarezalvar3z.hashnode.dev·Sep 7, 2023Active Storage - Como activarlo y usarloActive Storage es una característica de Ruby on Rails que se utiliza para manejar el almacenamiento de archivos en aplicaciones web. Esta característica está diseñada para simplificar el manejo de archivos adjuntos, como imágenes, videos, documentos,...Discuss·70 readsRuby on Railsarchivos
Lucian GhindaProallaboutcoding.ghinda.com·Jun 28, 2023Ruby's range literals and their effect on Rails Active Record queriesThe following Active Record query: User.where(created_at: 1.day.ago...Time.current).to_sql will generate this SQL: SELECT "users".* FROM "users" WHERE "users"."created_at" >= '2023-06-21 06:38:26.330063' AND "users"."created_at" < '2023-0...Discuss·3 likes·1.4K readsRuby
Paweł DąbrowskiforBecome a Ruby herorubyhero.dev·Mar 20, 2023How to not get into trouble with Active RecordActive Record is a layer, in the Rails application, that makes database manipulation easier but can also harm your application’s performance and reliability if not used properly. This article is a list of good practices that you should follow, and ha...Discuss·5 likes·4.5K readsActive RecordRuby
Dhaval Singhwww.dsdev.in·Sep 6, 2021TIL #1 : How to pluck jsonb fileds in RailsIf you have a jsonb field in your Active record object and you want some nested value you can use pluck Example: Lets say your Users model has a jsonb attribuite metadata which has a nested key location which in turn has city you can get the value of...Discuss·47 readsPostgreSQL