• Feed
  • Discussions
Active Model

Active Model

#active-model
0 followers·3 articles

Active Model

#active-model·0 followers·3 articles
Active Model
Renan Porto
Renan Porto
tota1099.hashnode.dev·Nov 11, 2024
Nov 11, 2024

Rails - Active Model

O 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 reads
Rails
Rails
Renan Porto
Renan Porto
tota1099.hashnode.dev·Oct 24, 2024
Oct 24, 2024

Rails - Como transformar seus modelos para JSON

Vamos pensar no cenário em que eu possuo uma Model Customer e eu pretendo retorna-lá como JSON em alguma parte da minha aplicação: class Customer include ActiveModel::Model attr_accessor :id, :name validates :id, presence: true, numericality: ...

Discuss·20 reads
Rails
Rails
Boula Akladyous
Boula Akladyous
boula.hashnode.dev·Jun 09, 2021
Jun 09, 2021

Understanding Scopes in Rails

Understanding Rails Scopes and Class Methods for Efficient Database Queries? ope in Rails? Scopes in Rails are special methods to run SQL queries that you can build in any rails model. A scope will always return an ActiveRecord::Relation object, even...

Understanding Scopes in Rails
Discuss·1 read
Active Model

Changelog

New steps component and improved accessibility on Hashnode's blog and docs product.

New steps component and improved accessibility on Hashnode's blog and docs product.

Nov 05, 2024·
new

Trending Articles

Aibit Exchange: The AI-Powered Crypto Platform Built for the Future

Naomi Antia Benson·48 reads

"This Isn’t Just a Token — It’s a Lifestyle Revolution. $L2APP Presale Begins July 14"

Naomi Antia Benson·59 reads

WiFi Map Premium Just Got Cheaper: Here’s Why It’s a Game-Changer for Travelers.

Patience Uyire·40 reads

Top commenters this week

Writing Challenges

Mayank Arora
Mayank Arora
Saanvi Kumar
Saanvi Kumar
Muhammad Rizwan
Muhammad Rizwan
Charlie Simmon
Charlie Simmon
Celestine Assumpta Chinonso
Celestine Assumpta Chinonso
#2Articles1Week Challenge

Become better at technical writing; accept Hashnode's writing challenge for four weeks.

#2Articles1Week Challenge
#WomenWhoTech

Share your story, achievements, or experiences as a woman, non-binary folk in tech or as a #WomenWhoTech ally!

#WomenWhoTech
Self Starter

Publish your first article on Hashnode and become a self starter!

Self Starter
Serial Blogger

Publish an article every day for 7 days and earn a cool serial blogger badge!

Serial Blogger
Talk of the town

Write a story that drives amazing engagement on Hashnode and become the talk of the town!

Talk of the town
Word Warrior

Write an in-depth article on your Hashnode blog that's more than 2000 words and become a word warrior!

Word Warrior