Various forms and one controller

Hi
i use various forms and one controller.

view code

<% form_tag :action => ‘wizard’, :stage => @next_stage do %>

controller code:

def wizard
if params[:stage].nil?

elsif params[:stage].to_i == 1

elsif params[:stage].to_i == 2

elsif params[:stage].to_i == 3

elsif params[:stage].to_i == 4

else

end
render :template => ‘wizard\stage’[email protected]_stage.to_s
end

but i got error and first form values only saved in databases

so please help me
Thanks
balaji

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs