search for: save_test

Displaying 1 result from an estimated 1 matches for "save_test".

Did you mean: save_rest
2010 Mar 16
4
Get content from HTML element in Rails
...Rails view. I would like the literal HTML content, so only HTML and no Rails I thought inner_html would work, but I get a RJS exception (TypeError: $("content").innerHtml is not a function) Does anyone know how I can get the content? Thanks! In my controller I use this code: [code] def save_test render :update do |page| page[''content''].innerHTML end end [/code] Some more context maybe? I get a HTML form (without the form tags themselves) and put it into a rails form. What I want is that the user changes checkboxes, radiobuttons, fills out input fields etc...