%
require 'cgi'
cgi = CGI.new
name = cgi['name']
%>
Using the params() method
<%
cgi.params.each do |key, value|
%>
<%= "#{key}: #{value}" %>
<%
end
%>
Not using the params() method
<%
cgi.keys.each do |param|
%>
<%= "#{param}: #{cgi[param]}
" %>
<%
end
%>