# Custom Field not working

**URL:** <https://meta.discourse.org/t/custom-field-not-working/89983>\
**Category:** Development\
**Created:** [June 15, 2018, 4:52pm UTC](https://meta.discourse.org/t/custom-field-not-working/89983 "2018-06-15T16:52:29Z")\
**Posts on this page:** 1\
**Showing post:** 22

<div class="post-metadata">

**Author:** ![vinothkannans](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/vinothkannans/32/86465_2.png) [@vinothkannans](https://meta.discourse.org/u/vinothkannans)\
**Post date:** [July 26, 2018, 11:08am UTC](https://meta.discourse.org/t/custom-field-not-working/89983/22 "2018-07-26T11:08:11Z")

</div>

> [@Sanjay1](#):
>
> if I set the value of the custom field with params[“value\_to\_field”] from the params Hash

You can get `params` only in controllers.

> [@Sanjay1](#):
>
> the fact that it `add_to_serializer` does not have access to params

You have to understand the differences between serializers and controllers. Also read other Rails essentials.

---

_[View the full topic](https://meta.discourse.org/t/custom-field-not-working/89983)._
