Answers for "html tag inside ruby tag"

1

embedded ruby tag

#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 %>
Posted by: Guest on May-02-2021

Browse Popular Code Answers by Language