Working with method from controller in button

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!