Embedded Ruby Tag

[Solved] Embedded Ruby Tag | Ruby - Code Explorer | yomemimo.com
Question : embedded ruby tag

Answered by : dhyani16

#The tag when we dont want the text to be shown on the screen (example: loops, if-else statements etc.)
<% writeAnyCodeHere %>
#When we want to show the content of the tag on the screen
<%= writeAnyCodeThatYouWantToDisplay %>

Source : | Last Update : Sun, 09 May 21

Answers related to embedded ruby tag

Code Explorer Popular Question For Ruby