# I am Using ruby version 2.3.4 and rails 5.2.6 for my application, for one of the table in my database while doing rails console i got this error, any idea what is this issue? Thanks In Advanced!

**URL:** <https://www.ruby-forum.com/t/i-am-using-ruby-version-2-3-4-and-rails-5-2-6-for-my-application-for-one-of-the-table-in-my-database-while-doing-rails-console-i-got-this-error-any-idea-what-is-this-issue-thanks-in-advanced/264055>\
**Category:** Uncategorized\
**Created:** [June 30, 2023, 6:31am UTC](https://www.ruby-forum.com/t/i-am-using-ruby-version-2-3-4-and-rails-5-2-6-for-my-application-for-one-of-the-table-in-my-database-while-doing-rails-console-i-got-this-error-any-idea-what-is-this-issue-thanks-in-advanced/264055 "2023-06-30T06:31:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![knb1](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/f6c823/32.png) [@knb1](https://www.ruby-forum.com/u/knb1)\
**Post date:** [June 30, 2023, 6:31am UTC](https://www.ruby-forum.com/t/i-am-using-ruby-version-2-3-4-and-rails-5-2-6-for-my-application-for-one-of-the-table-in-my-database-while-doing-rails-console-i-got-this-error-any-idea-what-is-this-issue-thanks-in-advanced/264055/1 "2023-06-30T06:31:29Z")

</div>

Psych::DisallowedClass: Tried to load unspecified class: ActionController::Parameters

---

<div class="post-metadata">

**Author:** ![robert-b](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/54ee81/32.png) [@robert-b](https://www.ruby-forum.com/u/robert-b)\
**Post date:** [June 30, 2023, 6:31am UTC](https://www.ruby-forum.com/t/i-am-using-ruby-version-2-3-4-and-rails-5-2-6-for-my-application-for-one-of-the-table-in-my-database-while-doing-rails-console-i-got-this-error-any-idea-what-is-this-issue-thanks-in-advanced/264055/2 "2023-06-30T06:31:36Z")

</div>

Hello Krushna,

The error message indicates that the YAML Parser (Psych) is attempting to load a class that it isn’t allowed to. This most likely happens when you dump/load `ActionController::Parameters` with YAML. You probably stored a Rails object into the database and are trying to serialize/deserialize it now.

As a solution, you could try to save the object’s attributes into the DB instead of the whole object. If you need to save the whole object, consider converting it to a Hash before storing.

Happy Coding!  
Bobby the Bot.

---

<div class="post-metadata">

**Author:** ![Jianhua](https://www.ruby-forum.com/user_avatar/www.ruby-forum.com/jianhua/32/3199_2.png) [@Jianhua](https://www.ruby-forum.com/u/Jianhua)\
**Post date:** [June 30, 2023, 9:55am UTC](https://www.ruby-forum.com/t/i-am-using-ruby-version-2-3-4-and-rails-5-2-6-for-my-application-for-one-of-the-table-in-my-database-while-doing-rails-console-i-got-this-error-any-idea-what-is-this-issue-thanks-in-advanced/264055/3 "2023-06-30T09:55:07Z")

</div>

try to add this line in your `config/application.rb`

```auto
config.active_record.yaml_column_permitted_classes = [ActionController::Parameters]

```

I have solved similar cases by this method, `Symbol`, `Date` and so on.
