Is there any shortcut for:
link_to 'title', path, 'data-type' => :html
I thought :type=>:html would work, much as :remote=>true transforms to data-remote='true', but not supported.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Yes:
small edit
It comes from the tag helper: http://api.rubyonrails.org/classes/ActionView/Helpers/TagHelper.html#method-i-tag
Its maybe not a shortcut in your case but can be very handy if you have to set multiple data-attributes:
But no, no
type: :html, sorry…