# Question about mod\_ruby, eruby and ajax

**URL:** <https://www.ruby-forum.com/t/question-about-mod-ruby-eruby-and-ajax/88821>\
**Category:** Ruby\
**Created:** [March 14, 2007, 6:35pm UTC](https://www.ruby-forum.com/t/question-about-mod-ruby-eruby-and-ajax/88821 "2007-03-14T18:35:43Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Fei\_L](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/dc4da7/32.png) [@Fei\_L](https://www.ruby-forum.com/u/Fei_L)\
**Post date:** [March 14, 2007, 6:35pm UTC](https://www.ruby-forum.com/t/question-about-mod-ruby-eruby-and-ajax/88821/1 "2007-03-14T18:35:43Z")

</div>

Hi Group, I have a question about eruby. I keep getting the following  
error. I get the same error in apache error log when I try to view it in  
firefox. How do I fix it:

## eruby pique.rhtml pique.rhtml:1: undefined method `form\_remote\_tag’ for main:Object (NoMethodError) — generated code — print(( form\_remote\_tag :url =\> { :action =\> ‘whet’ } )); print " \n" print “Enter your name: “; print(( text\_field\_tag :name )); print " \n” print(( submit\_tag “Greet Me” )); print " \n” print(( end\_form\_tag )); print " \n" print “\<h2 id=“greeting” style=“display: none”\>
\n”

Installed RPMS (on FC5):  
eruby-libs-1.0.5-5.2.1  
ruby-devel-1.8.5.2-1.fc5  
ruby-irb-1.8.5.2-1.fc5  
ruby-1.8.5.2-1.fc5  
ruby-mode-1.8.4-8.fc5  
ruby-rdoc-1.8.5.2-1.fc5  
eruby-1.0.5-5.2.1  
ruby-libs-1.8.5.2-1.fc5  
rubygems-0.9.2-1.fc5

eruby]$ more \*  
::::::::::::::  
pique.rhtml  
::::::::::::::  
\<%= form\_remote\_tag :url =\> { :action =\> ‘whet’ } %\>  
Enter your name: \<%= text\_field\_tag :name %\>  
\<%= submit\_tag “Greet Me” %\>  
\<%= end\_form\_tag %\>

## 
:::::::::::::: whet.rjs :::::::::::::: page[:greeting].hide page[:greeting].update "Greetings, " + params[:name] page[:greeting].visual\_effect :grow page.select("form").first.reset

more mod\_ruby.conf:

# ClearModuleList

# AddModule mod\_ruby.c

\<IfModule !mod\_ruby.c\>  
LoadModule ruby\_module /usr/lib/httpd/modules/mod\_ruby.so

# AddType text/html .rhtml

AddType application/x-httpd-cgi .rhtml  
RubyRequire apache/eruby-run

# Execute files under /ruby as Ruby scripts

\<Location /eruby\>  
SetHandler ruby-object  
RubyHandler Apache::ERubyRun.instance

# Execute \*.rbx files as Ruby scripts

\<Files \*.rbx\>  
SetHandler ruby-object  
RubyHandler Apache::ERubyRun.instance  
  
\<Files \*.rhtml\>  
SetHandler ruby-object  
RubyHandler Apache::ERubyRun.instance  
  
\<Directory /home/devel/public\_html/eruby\>  
Options ExecCGI

gem list:  
\*\*\* LOCAL GEMS \*\*\*

actionmailer (1.3.3)  
Service layer for easy email delivery and testing.

actionpack (1.13.3)  
Web-flow and rendering framework putting the VC in MVC.

actionwebservice (1.2.3)  
Web service support for Action Pack.

activerecord (1.15.3)  
Implements the ActiveRecord pattern for ORM.

activesupport (1.4.2)  
Support and utility classes used by the Rails framework.

cgi\_multipart\_eof\_fix (2.1)  
Fix an exploitable bug in CGI multipart parsing which affects Ruby  
\<= 1.8.5 when multipart boundary attribute contains a non-halting  
regular expression string.

daemons (1.0.5)  
A toolkit to create and control daemons in different ways

fastthread (0.6.4.1)  
Optimized replacement for thread.rb primitives

gem\_plugin (0.2.2)  
A plugin system based only on rubygems that uses dependencies only

mongrel (1.0.1)  
A small fast HTTP library and server that runs Rails, Camping, Nitro  
and Iowa apps.

rails (1.2.3)  
Web-application framework with template engine, control-flow layer,  
and ORM.

rake (0.7.2)  
Ruby based make-like utility.

sources (0.0.1)  
This package provides download sources for remote gem installation

---

<div class="post-metadata">

**Author:** ![Fei\_L](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/dc4da7/32.png) [@Fei\_L](https://www.ruby-forum.com/u/Fei_L)\
**Post date:** [March 14, 2007, 11:44pm UTC](https://www.ruby-forum.com/t/question-about-mod-ruby-eruby-and-ajax/88821/2 "2007-03-14T23:44:35Z")

</div>

On 3/14/07, Fei L. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> print(( submit\_tag “Greet Me” )); print " \n"  
> ruby-rdoc-1.8.5.2-1.fc5  
> \<%= submit\_tag “Greet Me” %\>  
> more mod\_ruby.conf:  
> \<Location /eruby\>  
> SetHandler ruby-object  
> actionmailer (1.3.3)
> 
> rails (1.2.3)  
> Web-application framework with template engine, control-flow layer,  
> and ORM.
> 
> rake (0.7.2)  
> Ruby based make-like utility.
> 
> sources (0.0.1)  
> This package provides download sources for remote gem installation

Hi,

form\_remote\_tag is from the ActionPack, To be able to use it you need  
to require it somehow, something like:

require ‘rubygems’  
gem ‘actionpack’  
require ‘actionview/helpers/prototype\_helper’

(maybe you’ll need to prepend lib/ to actionview)  
and probably you’ll need to reference prototype.js from your html pages.

---

<div class="post-metadata">

**Author:** ![Fei\_L](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/dc4da7/32.png) [@Fei\_L](https://www.ruby-forum.com/u/Fei_L)\
**Post date:** [September 25, 2007, 11:02pm UTC](https://www.ruby-forum.com/t/question-about-mod-ruby-eruby-and-ajax/88821/3 "2007-09-25T23:02:29Z")

</div>

Jan S. wrote:

> > print "Enter your name: “; print(( text\_field\_tag :name )); print " \n”  
> > ruby-mode-1.8.4-8.fc5  
> > Enter your name: \<%= text\_field\_tag :name %\>
> > 
> > # Execute files under /ruby as Ruby scripts
> > 
> > \<Files \*.rhtml\>
> > 
> > ```
> > Implements the ActiveRecord pattern for ORM.
> > A toolkit to create and control daemons in different ways
> > 
> > ```
> 
> Hi,

## Thanks for your reply. I am trying out your suggestions, in my case I believe it’s lib/actionview/helpers/prototype\_helper. But I keep getting errors: /usr/lib/ruby/site\_ruby/1.8/rubygems/custom\_require.rb:27:in `gem_original_require': no such file to load -- lib/action_view/helpers/prototype_helper.rb (LoadError) from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in`require’ — generated code — require ‘rubygems’ ; print “\n” gem ‘actionpack’ ; print “\n” require ‘lib/action\_view/helpers/prototype\_helper.rb’ ; print “\n” require ‘lib/action\_view/helpers/javascripts/prototype.js’ ; print “\n” print(( form\_remote\_tag :url =\> { :action =\> ‘whet’ } )); print " \n" print “Enter your name: “; print(( text\_field\_tag :name )); print " \n” print(( submit\_tag “Greet Me” )); print " \n” print(( end\_form\_tag )); print " \n" print “\<h2 id=“greeting” style=“display: none”\>
\n”

pique.rhtml:  
\<% require ‘rubygems’ %\>  
\<% gem ‘actionpack’ %\>  
\<% require ‘lib/action\_view/helpers/prototype\_helper.rb’ %\>  
\<% require ‘lib/action\_view/helpers/javascripts/prototype.js’ %\>  
\<%= form\_remote\_tag :url =\> { :action =\> ‘whet’ } %\>  
Enter your name: \<%= text\_field\_tag :name %\>  
\<%= submit\_tag “Greet Me” %\>  
\<%= end\_form\_tag %\>

## 

ls  
/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action\_view/helpers/  
active\_record\_helper.rb date\_helper.rb form\_tag\_helper.rb  
pagination\_helper.rb url\_helper.rb  
asset\_tag\_helper.rb debug\_helper.rb javascript\_helper.rb  
prototype\_helper.rb  
benchmark\_helper.rb deprecated\_helper.rb  
java\_script\_macros\_helper.rb scriptaculous\_helper.rb  
cache\_helper.rb form\_helper.rb javascripts  
tag\_helper.rb  
capture\_helper.rb form\_options\_helper.rb number\_helper.rb  
text\_helper.rb

I’ve tried both with ‘.rb’ and without ‘.rb’, neither one works…

Fei

---

<div class="post-metadata">

**Author:** ![Fei\_L](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/dc4da7/32.png) [@Fei\_L](https://www.ruby-forum.com/u/Fei_L)\
**Post date:** [September 25, 2007, 11:04pm UTC](https://www.ruby-forum.com/t/question-about-mod-ruby-eruby-and-ajax/88821/4 "2007-09-25T23:04:04Z")

</div>

> > and probably you’ll need to reference prototype.js from your html pages.

I’ve made some more changes, it seems I am back to the origin again, I  
am getting form\_remote\_tag NoMethodError again in httpd error\_log…I  
don’t know what I am doing wrong. Can someone provide/point me to a  
simple test case that actually works with apache2?

\<% require ‘rubygems’ %\>  
\<% gem ‘actionpack’ %\>

\<% require ‘action\_controller’ %\>  
\<% require ‘action\_view’ %\>  
\<% require ‘action\_pack’ %\>  
\<% require ‘action\_view/helpers/prototype\_helper’ %\>  
\<% include ActionView::Helpers::PrototypeHelper %\>  
\<% include ActionView::Helpers::JavaScriptHelper %\>  
\<% include ActionView::Helpers::UrlHelper %\>

\<%= form\_remote\_tag :url =\> { :action =\> ‘whet’ } %\>  
Enter your name: \<%= text\_field\_tag :name %\>  
\<%= submit\_tag “Greet Me” %\>  
\<%= end\_form\_tag %\>

##

---

<div class="post-metadata">

**Author:** ![Fei\_L](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/dc4da7/32.png) [@Fei\_L](https://www.ruby-forum.com/u/Fei_L)\
**Post date:** [September 25, 2007, 11:07pm UTC](https://www.ruby-forum.com/t/question-about-mod-ruby-eruby-and-ajax/88821/5 "2007-09-25T23:07:36Z")

</div>

Jan S. wrote:

> > \<%= form\_remote\_tag :url =\> { :action =\> ‘whet’ } %\>  
> > benchmark\_helper.rb deprecated\_helper.rb  
> > Now you’d need some more gems possibly (i neede redcloth, bluecloth, etc.)  
> > It should be possible to selectively include only the needed libs. Now  
> > I don’t have time to find out. Try yourself.
> 
> Jano

Ok I worked around this problem by creating a rail project and looking  
at the pique.rhtml in rails server. Now I am getting a different set of  
error:

TypeError in Pique#whet

Showing app/views/pique/whet.rjs where line #1 raised:

ActionView::Helpers::JavaScriptElementProxy#to\_str should return String

Extracted source (around line #1):

1: page[:greeting].hide page[:greeting].update "Greetings, " +  
params[:name]  
2: page[:greeting].visual\_effect :grow  
3: page.select(“form”).first.reset

RAILS\_ROOT: script/…/config/…  
Application Trace | Framework Trace | Full Trace

/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action\_view/helpers/prototype\_helper.rb:607:in  
`join' /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_view/helpers/prototype_helper.rb:607:in`arguments\_for\_call’  
/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action\_view/helpers/prototype\_helper.rb:708:in  
`send' /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_view/helpers/prototype_helper.rb:708:in`call’  
/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action\_view/helpers/prototype\_helper.rb:703:in  
`method_missing' #{RAILS_ROOT}/app/views/pique/whet.rjs:1:in`\_\_bind\_1173984771\_406507’  
#{RAILS\_ROOT}/app/views/pique/whet.rjs:0:in  
`\_run\_rjs\_47app47views47pique47whet46rjs’

/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action\_view/helpers/prototype\_helper.rb:607:in  
`join' /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_view/helpers/prototype_helper.rb:607:in`arguments\_for\_call’  
/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action\_view/helpers/prototype\_helper.rb:708:in  
`send' /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_view/helpers/prototype_helper.rb:708:in`call’  
/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action\_view/helpers/prototype\_helper.rb:703:in  
`method_missing' /usr/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/core_ext/object/extending.rb:44:in`[]’  
/usr/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active\_support/core\_ext/object/extending.rb:44:in  
`instance_exec' /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_view/helpers/prototype_helper.rb:313:in`initialize’  
/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action\_view/helpers/prototype\_helper.rb:625:in  
`new' /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_view/helpers/prototype_helper.rb:625:in`update\_page’  
/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action\_view/base.rb:326:in  
`send' /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_view/base.rb:326:in`compile\_and\_render\_template’  
/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action\_view/base.rb:301:in  
`render_template' /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_view/base.rb:260:in`render\_file’  
/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action\_controller/base.rb:806:in  
`render_file' /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/base.rb:711:in`render\_with\_no\_layout’  
/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action\_controller/layout.rb:256:in  
`render_without_benchmark' /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/benchmarking.rb:50:in`render’  
/usr/lib/ruby/1.8/benchmark.rb:293:in `measure' /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/benchmarking.rb:50:in`render’  
/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action\_controller/base.rb:1101:in  
`perform_action_without_filters' /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/filters.rb:632:in`call\_filter’  
/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action\_controller/filters.rb:619:in  
`perform_action_without_benchmark' /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/benchmarking.rb:66:in`perform\_action\_without\_rescue’  
/usr/lib/ruby/1.8/benchmark.rb:293:in `measure' /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/benchmarking.rb:66:in`perform\_action\_without\_rescue’  
/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action\_controller/rescue.rb:83:in  
`perform_action' /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/base.rb:430:in`send’  
/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action\_controller/base.rb:430:in  
`process_without_filters' /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/filters.rb:624:in`process\_without\_session\_management\_support’  
/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action\_controller/session\_management.rb:114:in  
`process' /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/base.rb:330:in`process’  
/usr/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/dispatcher.rb:41:in  
`dispatch' /usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/rails.rb:78:in`process’  
/usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/rails.rb:76:in  
`synchronize' /usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/rails.rb:76:in`process’  
/usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:618:in  
`process_client' /usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:617:in`each’  
/usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:617:in  
`process_client' /usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in`run’  
/usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in  
`initialize' /usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in`new’  
/usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in `run' /usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in`initialize’  
/usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in `new' /usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in`run’  
/usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/configurator.rb:271:in  
`run' /usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/configurator.rb:270:in`each’  
/usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/configurator.rb:270:in  
`run' /usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/bin/mongrel_rails:127:in`run’  
/usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/command.rb:211:in  
`run' /usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/bin/mongrel_rails:243 /usr/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:488:in`load’  
/usr/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active\_support/dependencies.rb:488:in  
`load' /usr/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:342:in`new\_constants\_in’  
/usr/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active\_support/dependencies.rb:488:in  
`load' /usr/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/commands/servers/mongrel.rb:60 /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in`gem\_original\_require’  
/usr/lib/ruby/site\_ruby/1.8/rubygems/custom\_require.rb:27:in `require' /usr/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:495:in`require’  
/usr/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active\_support/dependencies.rb:342:in  
`new_constants_in' /usr/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:495:in`require’  
/usr/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/commands/server.rb:39  
/usr/lib/ruby/site\_ruby/1.8/rubygems/custom\_require.rb:27:in  
`gem_original_require' /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in`require’  
script/server:3

/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action\_view/helpers/prototype\_helper.rb:607:in  
`join' /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_view/helpers/prototype_helper.rb:607:in`arguments\_for\_call’  
/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action\_view/helpers/prototype\_helper.rb:708:in  
`send' /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_view/helpers/prototype_helper.rb:708:in`call’  
/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action\_view/helpers/prototype\_helper.rb:703:in  
`method_missing' #{RAILS_ROOT}/app/views/pique/whet.rjs:1:in`\_\_bind\_1173984771\_406507’  
/usr/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active\_support/core\_ext/object/extending.rb:44:in  
`[]' /usr/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/core_ext/object/extending.rb:44:in`instance\_exec’  
/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action\_view/helpers/prototype\_helper.rb:313:in  
`initialize' /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_view/helpers/prototype_helper.rb:625:in`new’  
/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action\_view/helpers/prototype\_helper.rb:625:in  
`update_page' #{RAILS_ROOT}/app/views/pique/whet.rjs:0:in`\_run\_rjs\_47app47views47pique47whet46rjs’  
/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action\_view/base.rb:326:in  
`send' /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_view/base.rb:326:in`compile\_and\_render\_template’  
/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action\_view/base.rb:301:in  
`render_template' /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_view/base.rb:260:in`render\_file’  
/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action\_controller/base.rb:806:in  
`render_file' /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/base.rb:711:in`render\_with\_no\_layout’  
/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action\_controller/layout.rb:256:in  
`render_without_benchmark' /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/benchmarking.rb:50:in`render’  
/usr/lib/ruby/1.8/benchmark.rb:293:in `measure' /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/benchmarking.rb:50:in`render’  
/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action\_controller/base.rb:1101:in  
`perform_action_without_filters' /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/filters.rb:632:in`call\_filter’  
/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action\_controller/filters.rb:619:in  
`perform_action_without_benchmark' /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/benchmarking.rb:66:in`perform\_action\_without\_rescue’  
/usr/lib/ruby/1.8/benchmark.rb:293:in `measure' /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/benchmarking.rb:66:in`perform\_action\_without\_rescue’  
/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action\_controller/rescue.rb:83:in  
`perform_action' /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/base.rb:430:in`send’  
/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action\_controller/base.rb:430:in  
`process_without_filters' /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/filters.rb:624:in`process\_without\_session\_management\_support’  
/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action\_controller/session\_management.rb:114:in  
`process' /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/base.rb:330:in`process’  
/usr/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/dispatcher.rb:41:in  
`dispatch' /usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/rails.rb:78:in`process’  
/usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/rails.rb:76:in  
`synchronize' /usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/rails.rb:76:in`process’  
/usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:618:in  
`process_client' /usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:617:in`each’  
/usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:617:in  
`process_client' /usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in`run’  
/usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in  
`initialize' /usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in`new’  
/usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in `run' /usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in`initialize’  
/usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in `new' /usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in`run’  
/usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/configurator.rb:271:in  
`run' /usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/configurator.rb:270:in`each’  
/usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/configurator.rb:270:in  
`run' /usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/bin/mongrel_rails:127:in`run’  
/usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/command.rb:211:in  
`run' /usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/bin/mongrel_rails:243 /usr/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:488:in`load’  
/usr/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active\_support/dependencies.rb:488:in  
`load' /usr/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:342:in`new\_constants\_in’  
/usr/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active\_support/dependencies.rb:488:in  
`load' /usr/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/commands/servers/mongrel.rb:60 /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in`gem\_original\_require’  
/usr/lib/ruby/site\_ruby/1.8/rubygems/custom\_require.rb:27:in `require' /usr/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:495:in`require’  
/usr/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active\_support/dependencies.rb:342:in  
`new_constants_in' /usr/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:495:in`require’  
/usr/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/commands/server.rb:39  
/usr/lib/ruby/site\_ruby/1.8/rubygems/custom\_require.rb:27:in  
`gem_original_require' /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in`require’  
script/server:3

Request

Parameters: {“name”=\>“Joo Fun”, “commit”=\>“Greet Me”}

Show session dump

* * *

flash: !map:ActionController::Flash::FlashHash {}

Response  
Headers: {“cookie”=\>[], “Content-Type”=\>“text/javascript”,  
“Cache-Control”=\>“no-cache”}

---

<div class="post-metadata">

**Author:** ![Fei\_L](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/dc4da7/32.png) [@Fei\_L](https://www.ruby-forum.com/u/Fei_L)\
**Post date:** [September 25, 2007, 11:10pm UTC](https://www.ruby-forum.com/t/question-about-mod-ruby-eruby-and-ajax/88821/6 "2007-09-25T23:10:47Z")

</div>

On 3/15/07, Fei L. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> > > print(( form\_remote\_tag :url =\> { :action =\> ‘whet’ } )); print " \n"  
> > > ruby-1.8.5.2-1.fc5  
> > > \<%= form\_remote\_tag :url =\> { :action =\> ‘whet’ } %\>
> > > 
> > > \*\*\* LOCAL GEMS \*\*\* activerecord (1.15.3) daemons (1.0.5) and Iowa apps.
> > 
> > and probably you’ll need to reference prototype.js from your html pages.  
> > require ‘rubygems’ ; print “\n”  
> > pique.rhtml:  
> > start with:

\<% require ‘rubygems’ %\>  
\<% gem ‘actionpack’ %\>  
\<% gem ‘activesupport’ %\>  
\<% require ‘active\_support’ %\>  
\<% require ‘action\_view’ %\>  
\<%= javascript\_include\_tag `prototype’ %\>

> ```
> prototype_helper.rb
> 
> ```
> 
> benchmark\_helper.rb deprecated\_helper.rb  
> java\_script\_macros\_helper.rb scriptaculous\_helper.rb  
> cache\_helper.rb form\_helper.rb javascripts  
> tag\_helper.rb  
> capture\_helper.rb form\_options\_helper.rb number\_helper.rb  
> text\_helper.rb
> 
> I’ve tried both with ‘.rb’ and without ‘.rb’, neither one works…
> 
> Fei

Now you’d need some more gems possibly (i neede redcloth, bluecloth,  
etc.)  
It should be possible to selectively include only the needed libs. Now  
I don’t have time to find out. Try yourself.

Jano
