I’ve followed the instructions on the git page for rails three, and
set my form tags to :remote=>true
but the inputs in the forms are not showing up with any data-elements
and when i change data nothing is sent back to the server
is there something else i have to do on the forms, do all the input
tags have to be set to :remote=>true as well?
thanks
ken
Post a view, i.e. a file that ends in .html.erb, which contains your
form.
but the inputs in the forms are not showing up with any data-elements
An element does not send out a request. A sends out a
request when you click on the submit . In other words, after
the user fills out a form, they click the submit button, then the
browser creates a request containing the info on the form, then the
browser sends the request to your server, and the server extracts the
data from the request and passes the data
to your rails app.
A ‘regular’ request will cause your rails app to send back a new html
page for your browser to display. A ‘remote’ request is used when you
don’t want the browser to load a new page–instead you just want to
replace a small bit of data on the page.
and when i change data nothing is sent back to the server
Data gets sent to the server after you click the submit button.
It’s possible to use javascript to detect an onchange event for an
element, but you need to know javascript or jquery to program
that.