Jeremy Cowgar
2006-Jun-15 12:44 UTC
[Rails] Include JavaScript variable in <%= remote_function %> call?
How can I do this? For instance, something like:
<script ...>
function check_duplicate(name) {
<%= remote_function :url => {:action =>
''check_duplicate'', :name
=> name } %>
}
</script>
Obviously the above is just a dummy mockup. I have much more complex
(and complete) sections of code that need to accomplish a task like
this. Anyone know of a way to accomplish this task?
Thanks,
Jeremy
