Forum: Ruby on Rails UJS and make_observed

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and 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 ] %>

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

         <div id="contresults">

this should call this code

   def search
     puts params[ 'user_search' ]

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 ?


Nicholas W.
This topic is locked and can not be replied to.