Renan Portotota1099.hashnode.dev·Nov 11, 2024Rails - Active ModelO Active Model é uma biblioteca que possui recursos que podem ser usados em objetos Ruby simples que requerem recursos semelhantes aos de um modelo (model), mas não estão vinculados a nenhuma tabela em um banco de dados. Resumindo, o ActiveRecord d...Discuss·28 readsRailsRails
J3bitokjebitok.hashnode.dev·Oct 27, 2024Window and AD Fundamentals: Active Directory Basics (TryHackMe)In this article, I will write a write-up for Windows Fundamentals 3 that covers Windows Domains, Active Directory, Managing Users in AD, Managing Computers in AD, Group Policies, and Authentication Methods, together with Trees, Forests and Trusts. I...Discussactiverecord
Gaetano Osurgaetano-osur.hashnode.dev·Sep 15, 2024Handling Multiple Model Objects in a Single Rails FormI have been working on a flight booking project that required me to dynamically create passengers upon booking a flight. This led me to a painstakingly interesting journey of learning about nested forms in rails. In this blog, we'll explore how to ha...DiscussRails
Gaetano Osurgaetano-osur.hashnode.dev·Aug 14, 2024Model-View-Controller Architecture in Rails.In M-V-C architecture, a software is modeled into three main components: model, views, and controllers Models -> Acts as the medium for data interaction and representation Views -> Handles the presentation of information to the user. Controllers -...DiscussRails
Sergio Tapiasergiotapia.com·Jun 5, 2024Using binary ids / UUIDs for database primary keys in Rails.It's generally a good idea to use binary ids / UUIds for the primary keys in your database. Here's how to easily do it in Rails 7, using Postgres! Configure your generators to use UUID for keys. Create a file in config/initializers/generators.rb Rail...Discuss·45 readsRails
Aqiraqirlone.hashnode.dev·Apr 2, 2024Mastering ActiveRecord in Ruby on RailsIntroduction: In the world of Ruby on Rails development, ActiveRecord stands tall as the go-to ORM framework for simplifying database interactions. In this article, we'll dive deep into ActiveRecord, exploring its various features and demonstrating h...Discuss·223 readsRuby
Stephan Yustephanyu.hashnode.dev·Mar 13, 2024Ecto vs ActiveRecordIn this post, I am going to take a look at Ecto, a data mapping and database query library designed to provide seamless integration between Elixir code and database operations and compare it to Ruby on Rail's ActiveRecord. Ecto and ActiveRecord are b...DiscussElixir
Bruce Wellsblog.phpfui.com·Feb 20, 2024Late Static Binding in PHPIt is time to cover the Active Record class for my ORM. The Active Record design pattern is well known and there are many implementations in PHP to choose from, so why did I decide to write another one? Pretty simple actually. All the current impleme...Discuss·1 like·49 readsPHP
Mo' Claudiuskodedmo.hashnode.dev·Feb 8, 2024Auditing in Rails with PaperTrailLet us go on a journey through the world of Rails together, where the saga of data tracking unfolds with the magic of the PaperTrail gem. This narrative isn't just about lines of code; it's about the art of capturing the essence of change within your...DiscussRuby on Rails
Ahmed Nadarahmednadar.hashnode.dev·Jan 11, 2024Simplifying Polymorphic Associations with Rails ActiveRecord::DelegatedTypeHey Rails dev! Ever struggled with handling different types of data in your Rails applications? Well, ActiveRecord::DelegatedType is here to make your life easier. In this guide, I'll walk through how you can use DelegatedType to manage diverse data ...Discuss·392 readsRuby