Forum: Ruby on Rails UJS and make_observed

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Nicholas W. (Guest)
on 2007-07-08 13:23
(Received via mailing list)
<p class="lastwinner">
           <%= text_field_tag :user_search, params[ :user_search ] %>
         </p>

         <%= apply_behaviour "#user_search",
           make_observed( :field,
             :update => 'contresults',
             :with => "'user_search=' + escape($F('user_search'))",
             :url => { :controller => 'community', :action =>
'search' } ) %>

         <div id="contresults">
         </div>

this should call this code

   def search
     puts params[ 'user_search' ]
   end

Of course I've included UJS, changed application.rb with various
session_id stuff, included everything needed (it generates js files
correctly, the problem is that it's empty ...)

Someone has an idea of what's happening here ?

   ngw

--
Nicholas W.
removed_email_address@domain.invalid
This topic is locked and can not be replied to.