Hi Railies
I’m somewhat stuck trying to add some AJAX to my app, AJAX newbie stuff
I guess:
View:
Controller:
def test
render :update do |page|
page.replace_html ‘ajax_list’, ‘just testing’
page.replace_html ‘ajax_form’, ‘here too’
end
end
When I hit the GO link, I get this output dumped in the ajax_form-div:
NoMethodError in CompanyController#test
undefined method +' for #<Mime::Type:0x25cc57c> #{RAILS_ROOT}/app/controllers/application.rb:164:in
set_charset’
(…)
My code does look wrong to me, too, with ajax_form appearing in both
link_to_remote and replace_html. But I don’t seem to be able to figure
out the right way to do it.
Big thanks for your help!!