Taking a value from a form in a view and storing it via a method

Hi Guys,

Im have an issue with capturing a value from a radial form and storing it…?

self.chosenbox = 0

h = DOND_Game::Game.new(STDIN, STDOUT)

#code from my .erb view file (this works fine)

Pick a Box?

<% i = 0 %> <% @cbox.each do |box| %>* /> <%= i+1 %>
<%i = i + 1%> <% end %> Choose!

#But somewhere there there is an issue, the self.chosenbox is overwritten and when it is called it returns blank.

post ‘/New’ do
params[:boxchose]= “”
@bn = params[:boxchose]
h.setchosenbox
redirect ‘/Play’
end

def setchosenbox
self.chosenbox = @bn
return
end

sorry this is the view form code