I need to make a signature to pass as param into a jQuery $.post AJAX request, but I have some values to be hashed into Javascript vars. Any way to do it in an ERB file? Example:
var signature = '<%= Digest::MD5.hexdigest "app_key" + form params + "secret" %>
This normally will be done in client side
md5is function from other javascript library like md5.js