<% @session[:roll] = Dice.roll %> <% number = @last_roll || 5 %> <%= link_to_remote "\"Roll\"", :update => "buildings_pane", :loading => "scroll(#{@session[:roll]});", :complete => "end_scroll();", :url => {:action=> 'scroll'} %>