<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Matthew B Gardner schreef:
<blockquote cite="mid:200712080153.47376.weather@speakeasy.net"
type="cite">
<pre wrap="">I required rubygems (sorry, I thought I had tried that before, but maybe only
with nitro_and_og), but I still have the FormHelper name error.
./app/controller/root.rb:2: uninitialized constant RootController::FormHelper
(NameError)
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in
`require'
from app.rb:7
Looks like I did all this for nothing :). Do I just need to require a file to
get around this problem?
</pre>
</blockquote>
module FormHelper is defined in view/nform, so<br>
<br>
require "view/nform"<br>
<br>
might do the trick. If you still get the same problem try fully
qualifying it:<br>
<br>
include Raw::FormHelper<br>
<br>
Thanks for trying the tutorial and reporting this.<br>
<br>
(ab)<br>
<br>
<blockquote cite="mid:200712080153.47376.weather@speakeasy.net"
type="cite">
<pre wrap="">Thanks again again,
Matt
On Saturday 08 December 2007 01:30, Arne Brasseur wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Matthew B Gardner schreef:
</pre>
<blockquote type="cite">
<pre wrap="">I actually tried that too...sorry, I should have included that info.
app.rb:3:in `require': no such file to load -- nitro (LoadError)
from app.rb:3
I didn't have this problem before I switched to the darcs approach (I
switched b/c of the FormHelper name error).
</pre>
</blockquote>
<pre wrap="">So are you installing the gems or running the repo the directly? In the
first case add require "rubygems" or use the RUBYOPT=-rubygems trick.
</pre>
</blockquote>
<pre wrap=""><!---->_______________________________________________
Nitro-general mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Nitro-general@rubyforge.org">Nitro-general@rubyforge.org</a>
<a class="moz-txt-link-freetext" href="http://rubyforge.org/mailman/listinfo/nitro-general">http://rubyforge.org/mailman/listinfo/nitro-general</a>
</pre>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
Ein Fuchs muß tun, was ein Fuchs tun muß
<a class="moz-txt-link-abbreviated" href="mailto:arne@arnebrasseur.net">arne@arnebrasseur.net</a>
</pre>
</body>
</html>