# Rounds

**URL:** <https://www.ruby-forum.com/t/rounds/134031>\
**Category:** Rails\
**Created:** [April 7, 2008, 3:08am UTC](https://www.ruby-forum.com/t/rounds/134031 "2008-04-07T03:08:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![edberner](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/f9ae1b/32.png) [@edberner](https://www.ruby-forum.com/u/edberner)\
**Post date:** [April 7, 2008, 3:08am UTC](https://www.ruby-forum.com/t/rounds/134031/1 "2008-04-07T03:08:45Z")

</div>

I’m trying to add some Ajax functionality. I have a table with rounds.  
When the user enters the page I want the first thing he does is to  
enter the number of rounds into a text field. Then I want a table to  
appear or “blind\_down” below it. I so far have:

\<% remote\_form\_for([:school, :team, @game], :url =\> { :action =\>  
‘save\_rounds’, :id =\> @game }, :complete =\> visual\_effect(:blind\_down,  
‘standings’)) do |f| %\>

**Rounds**  
\<%= f.text\_field :rounds, :value =\> 5 %\>

\<%= submit\_tag "Update" %\>

\<% end %\>

def save\_rounds  
Game.find(params[:id]).rounds = params[:game][:rounds]  
render :action =\> “new”  
end
