You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi! I had a little confusion on including my assets into my Roda app. I was following the doc and did <%= assets(:js) %> and my browser render literal <script /> tag into the view. It turns out I need to do double equal sign == which will be <%== assets(:js) %>instead of single equal sign while the docs here http://roda.jeremyevans.net/rdoc/classes/Roda/RodaPlugins/Assets.html#module-Roda::RodaPlugins::Assets-label-Views didn't mention so or I probably missed it somewhere.
The text was updated successfully, but these errors were encountered:
You need to use <%== if using the render plugin :escape option, which isn't the default behavior. This is documented in the render plugin, but if you think additional documentation would be beneficial, please submit a documentation pull request.
Hi! I had a little confusion on including my assets into my Roda app. I was following the doc and did
<%= assets(:js) %>
and my browser render literal<script />
tag into the view. It turns out I need to do double equal sign==
which will be<%== assets(:js) %>
instead of single equal sign while the docs here http://roda.jeremyevans.net/rdoc/classes/Roda/RodaPlugins/Assets.html#module-Roda::RodaPlugins::Assets-label-Views didn't mention so or I probably missed it somewhere.The text was updated successfully, but these errors were encountered: