Displaying 2 results from an estimated 2 matches for "ajaxtestcontroller".
Did you mean:
ajax_test_controller
2009 Jul 28
4
RJS-Template and link_to_remote
...nd can''t use any rjs-templates.
The problem is, that he can''t use/find the methods in that template
e.g. ''page'' or ''replace_html''. I get an error message on these
methods.
Here''s what I got so far in my example:
Controller:
----
class AjaxTestController < ApplicationController
layout ''application'', :except => :say_hello
def index
end
def say_hello
@message = "Hello World"
respond_to do |format|
format.js
end
end
end
----
Layout
----
<?xml version="1.0" encoding="UT...
2006 Jan 10
8
first ajax demo in Rails book - does it work for anyone?
Just tried the first AJAX example in the rails book (p.391-392, the
''word guessing'' thing), and the AJAX partial used seems to render as a
full page.
I''m not sure whether it''s
a) a partial bug
b) some interaction between ajax and partials
c) a change since the book came out
or
d) pilot error
I''ve checked the errata pages and it''s flagged up