Mega Code Archive

 
Categories / Ruby / Rails
 

Passing Data from an Action to a View

//Controller: class HelloController < ApplicationController   def there     @time_now = Time.now   end end //View:  <html>    <head>      <title>Using Views</title>    </head>    <body>      The time is now <%= @time_now %>    </body>  </html>       passValueFromControllerToView.zip( 91 k)