Mega Code Archive

 
Categories / Ruby / Rails
 

Use puts to display text in a web page (It was printed out in the console )

<html>   <head>     <title>Using Views</title>   </head>   <body>     <h1>Working With Views</h1>     This is an active view in a Ruby on Rails application.     <br>     <br>     2 + 3 = <%= 2 + 3 %>     <br>     <% puts "Hi" %>     <br>     This page executes Ruby code on the fly.   </body> </html>   usePuts.zip( 87 k)