Closed JigneshGohel-BoTreeConsulting closed 10 years ago
You can't use Rails helpers in the browser, because they are designed to be rendered at the backend and not on the client. I've implemented successful S3 uploads in single page apps in two ways:
@netzpirat
In my sample application (based on Rails 3.2+, Backbone and CoffeeScript) I need to use the gem s3_direct_upload which supplies a form helper named s3_uploader_form This form helper I need to use inside one of template(having .jst.hamlc) corresponding to a Backbone view.
So my question is, is it possible to use Rails form helper tags like
form_for
inside jst.hamlc files? If not, then can you please suggest on how I can I manage to achieve the above requirement?Thanks, Jignesh