# Working with method from controller in button

**URL:** <https://www.ruby-forum.com/t/working-with-method-from-controller-in-button/189310>\
**Category:** Rails\
**Created:** [May 28, 2010, 4:06pm UTC](https://www.ruby-forum.com/t/working-with-method-from-controller-in-button/189310 "2010-05-28T16:06:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![saschap](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/cdc98d/32.png) [@saschap](https://www.ruby-forum.com/u/saschap)\
**Post date:** [May 28, 2010, 4:06pm UTC](https://www.ruby-forum.com/t/working-with-method-from-controller-in-button/189310/1 "2010-05-28T16:06:34Z")

</div>

Hi.

I’m new to ror.

I would like to refresh the data in the index view. To do this, i wanted  
to use a button.

I also want to limit the data in the index view with the conditions  
parameter. I want to use this with anoter button.

Can someone please help me?

I searched for hours in the internet without a solution.

Thanks!
