Data for AJAX req in Rails on the fly – solution

There is solution with Rails helper to issue from my last post. Simple use :with to pass JavaScript variable name. remote_function (:update => ‘results’, :url => {:action => search_points}, :with => ‘dataForSearch’) gives exactly what is needed: new Ajax.Updater(‘results’, ‘/route/search_points’, {asynchronous:true, evalScripts:true, parameters:dataForSearch});

Generating data for AJAX req in Rails on the fly

UPDATE It is possible – read in next post. Well… I’m starting with AJAX, and my first impressions are very positive. I was skeptical to JS but more I try more I like it. Maybe I don’t like troubles with debugging (like – does know anyone if Venkmann can set breakpoint in JS code embedded …

JOE and Rails or how to color RHTML

I’m using JOE as my text editor. I’m used to it and it is hard to change own habits. When I have got interested in Rails, I tried some other editors with support for Rails/Ruby (for UNIX text terminals). I was very close to use VIM with plugins for Rails. But to much habits from …