UJS and make_observed

<%= 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">
     </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.
[email protected]

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs