# Values from update action too model

**URL:** <https://www.ruby-forum.com/t/values-from-update-action-too-model/177099>\
**Category:** Rails\
**Created:** [October 11, 2009, 6:12pm UTC](https://www.ruby-forum.com/t/values-from-update-action-too-model/177099 "2009-10-11T18:12:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![gorter9](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/839c29/32.png) [@gorter9](https://www.ruby-forum.com/u/gorter9)\
**Post date:** [October 11, 2009, 6:12pm UTC](https://www.ruby-forum.com/t/values-from-update-action-too-model/177099/1 "2009-10-11T18:12:53Z")

</div>

How can i get the parameters from the update action into my model?

In this case i need the size from the update action  
Because each attachment has his own size.

has\_attached\_file :photo, :styles =\> { :small =\> size ------
