From: Fei Liu Date: 2007-03-15T23:40:09+09:00 Subject: Re: question about mod_ruby, eruby and ajax >> 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. >> 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 %>