Report abuse


			
# this works:

def test_link(name, options = {}, html_options = nil)
  url = url_for(options[:url])
  "
" + "
"+ "" end # but i want something like this: def test_link(name, options = {}, html_options = nil) onclick = "var f = document.createElement('form');"+ "f.style.display = 'none'; this.parentNode.appendChild(f);"+ "f.method = 'POST'; f.action = '/typ/foo'; f.id='k';"+ "var i = createElement('input'); i.type='hidden'; i.value='Foooo'; i.name='value';"+ "document.write();"+ "f.submit(); return false;" "" end # but this doesn' work...