---
title: "Discussion on \"handle unknown attributes in activeRecord\" | Hashnode"
description: "Discussion on \"handle unknown attributes in activeRecord\". When using ActiveRecord::new to create a new record in Rails, you may encounter the ActiveRecord::MissingAttributeError error if you pass an attribute that does not exist in the model.\nThis can happen for a few reasons:\n\nYou misspelled an attribute n..."
url: "https://hashnode.com/posts/handle-unknown-attributes-in-activerecord/64e7778152aba4bc9fe1c16e"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [handle unknown attributes in activeRecord](https://404ms.hashnode.dev/handle-unknown-attributes-in-activerecord?utm_source=hashnode&utm_medium=feed)

When using ActiveRecord::new to create a new record in Rails, you may encounter the ActiveRecord::MissingAttributeError error if you pass an attribute that does not exist in the model. This can happen for a few reasons: You misspelled an attribute n...

Aug 24, 2023 · 2 min read · 404ms.hashnode.dev  
Read the article

-   [#rails](https://hashnode.com/tag/rails)
-   [#ruby](https://hashnode.com/tag/ruby)
-   [#ror](https://hashnode.com/tag/ror)

## Written by

[黄滚](https://hashnode.com/@404ms)

@404ms

  
[View profile](https://hashnode.com/@404ms)

we could not found this guy

I am founder of https://some.im

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
