I have learned two things in the last 24 hours:
Javascript in partials
You can't place <% javascript_tag do %> in partials if you expect your javascript to be seen.
Multiple Requests as a Result of Form Submit
Multiple inclusions of js files, e.g. rails.js can cause multiple events/requests to be posted as a result of form submit. This is very hard to debug, but rails server shows, e.g. multiple GET requests being performed.
No comments:
Post a Comment