I copied the layout-example from agile web dev. in rails. When I want
to use ajax to create a search field including
does’nt work when I include the line in my
app/views/layout/demo.rhtml. Name of controller is demo_controller.rb.
The search-field is in app/views/demo/observer.rthml and I have to
include the above mentioned line in this file to “ajax-enable” the
search-field. Should’nt it be possible to include it from a