However, the confirmation is not working, its going straight to the
destroy action in the controller w/out confirming with the user in a
popup. Any ideas?
However, the confirmation is not working, its going straight to the
destroy action in the controller w/out confirming with the user in a
popup. Any ideas?
Is that "Yes I have JavaScript turned on in the browser _and_ I have
jQuery and prototype enabled in application.html.erb" or
"Yes, I have jQuery and protoype enabled in the application.html.erb
and I didn't actually understand what you meant by Javascript turned
on in the browser"?
If the former then have you checked the html to see if it is what you
expect (View, Page Source or similar in browser) and it might be worth
checking the html for validity by pasting the complete page html into
the w3c html validator.
Actually, its C. "I'm a dumba$$ and didn't read your question
carefully enough :)" Javascript IS turned on in my browser and
enabled in my app. I will follow you suggestion and try that route.
Thanks for the help!
Thanks for all the input, turns out I didn't have my javascript ducks
in a row, since I'm a JS newb.
I'm going with an all jquery solution, and I needed to do the
following things:
# in the layouts/application.html.erb
# remove the line <%= javascript_include_tag :defaults %>
# and add....
<%= javascript_include_tag 'jquery-1.4.3.js', 'rails', 'application'
%>