Marek N. wrote:
> Hello,
> 
> I am pretty new to RoR and I am stuck on this problem and not even sure
> how to troubleshoot it.  The issue is that my index.rhtml is not
> displaying any variables from my controller.
> 
> Controller (versions_controller.rb)
> ===================================
> class VersionController < ApplicationController
> def index
>    mydate = "20090521"
> end

That should be @mydate.

> 
> View (index.rhtml)
> ==================
> <table>
> <td>
> <%= @mydate %>
> 1
> </td></tr>
> </table>

[...]
> 
> Thanks,
> 
> Marek

Best,
--
Marnen Laibow-Koser
http://www.marnen.org
[email protected]
-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to