it works fine for me.
Can u specify the error u get???
Can u check ur development log once how it passes the parameters??
Also try out assigning like this...
@action = params[:submit_action].strip
Keep up to date with Rails on Twitter and This Week in Rails
Policies: Conduct, License, Maintenance, Security, Trademarks