Due to my current implementation of using QR Codes, I cannot change the request url. I need to be able to parse an address to get the string after the hash sign, i.e.: http://domain.com/#getthisstring Is there a way to do this?
相关问题
- Question marks after images and js/css files in ra
- Using :remote => true with hover event
- Eager-loading association count with Arel (Rails 3
- Is there a way to remove IDV Tags from an AIFF fil
- UrlEncodeUnicode and browser navigation errors
相关文章
- Right way to deploy Rails + Puma + Postgres app to
- AWS S3 in rails - how to set the s3_signature_vers
- how to call a active record named scope with a str
- How to add a JSON column in MySQL with Rails 5 Mig
- “No explicit conversion of Symbol into String” for
- form_for wrong number of arguments in rails 4
- Rspec controller error expecting <“index”> but
- Factory_girl has_one relation with validates_prese
You cannot do this on the server side. URL fragment identifiers are not sent to the server.
You can however trap this value on the client side with JavaScript and send an Ajax request to the server passing the aforementioned value.
An impl in jQuery perchance?
On the Rails end, you'd use
params[:hash]
to access this value.