Displaying 1 result from an estimated 1 matches for "html3".
Did you mean:
html
2005 Dec 15
11
CGI Module in Rails
I''m trying to use the CGI module to generate the html in a view but am
having trouble. My controller looks like:
class MyTestController < ApplicationController
def cgitest
require ''cgi''
@cgi=CGI.new("html3")
end
end
My cgitest.rhtml view document simply has:
<%= @cgi.out{@cgi.html{@cgi.head{}}} %>
Loading MyTest/cgitest, Rails tells me that ''html'' is an invalid or
missing method. Why? When I perform the same sequence in irb, I get a
skeleton html document as expecte...