Hi, Try this :* @mydate = "20090521" *
On Fri, May 22, 2009 at 2:02 PM, Marek N. <[email protected]>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 > > View (index.rhtml) > ================== > <table> > <td> > <%= @mydate %> > 1 > </td></tr> > </table> > > For some reason the view doesn't see the variable. I also have a > def query > ... > ... > ... > end > > in the same controller and it works fine (feeding query.rhtml without > any issues). > > I can even put garbage in the controller such as "a;lskjdfj" and it > doesn't give me a compile error in the controller. > > Any help would be appreciated. > > Thanks, > > Marek > -- > 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 -~----------~----~----~----~------~----~------~--~---

