I nave this pice of code in index.html (upload controller) This an example.
<p>
<label for="picture_city">City:</label>
<%= form.select :city, Picture::CITIES, :onchange => remote_function(:url => {:action => 'update_universities'}, :with => '') %>
</p>
When i go to upload/index the form loads well and no errors. But when i see generated code in html i don't see onchange attribute. It's mystic, please help me to fix that!!
<p>
<label for="picture_city">City:</label>
<select id="picture_city" name="picture[city]"><option value="1">New York</option>
<option value="2">Boston</option>
<option value="3">Chicago</option>
<option value="4">Detroit</option>
<option value="5">Washington</option></select>
</p>
Where is the problem??? Does anybody got it?