On Mar 20, 2010, at 6:18 PM, Hero1000 wrote:

So whats the rails way?


Just set an instance variable in your controller action:

class FrontController < ApplicationController

  def some_action
    @some_var = 'Foo'
  end

end

and then reference it in the view:

<page title="Front">
  <content:>
    <%= @some_var %>
  </content:>
</page>

--
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