On Mar 20, 2010, at 3:59 PM, Hero1000 wrote:

Hi,

For the past hour I have really be struggling with getting a variable
to display on an index page..

All I want to do is pass a variable from front_controller to my
index.dryml of the same controller...

I thought something like

<h5> total users: <%=this.num_of_users %></h5>

would work, but it doesn't and can't find anything searching....


What are you putting in 'this'? It's probably clearer (especially in a front_controller action, where there isn't really a "model") to just use regular Rails-style instance variables.

--Matt Jones

--
You received this message because you are subscribed to the Google Groups "Hobo 
Users" 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/hobousers?hl=en.

Reply via email to