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:
Using Views
The time is now <%= @time_now %> passValueFromControllerToView.zip( 91 k)