function submitForm() { alert("checked the button - worked"); $.ajax({type:'POST', url: '/pagetimes/create', data: $.param({ pagetime: {pagename: "whatever", start: 7, end: 21 }}) }); }
function submitForm() { alert("checked the button - worked"); $.ajax({type:'POST', url: '/pagetimes/create', data: $.param({ pagetime: {pagename: "whatever", start: 7, end: 21 }}) }); }