def test
render :update do |page|
page << ’ ’
end
end
mozilla just displayes the following, my function is defined in the
layout and my goal is just to call this javascript function when this
page is loaded, don’t know how why this won’t work, this is just basic
stuff.
how is the remote method ‘test’ getting called from the view.
Do not include an :update parameter, otherwise the view is expecting a
simple render such as
render :text=>‘Replaced with this’ and wont understand the
render :update response block.
Hi,
have the same problem have You solved it ?
Can You post the solution
Thanks
Erhard
tonypm wrote:
how is the remote method ‘test’ getting called from the view.
Do not include an :update parameter, otherwise the view is expecting a
simple render such as
render :text=>‘Replaced with this’ and wont understand the
render :update response block.
Tonypm
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.