local variables cannot be passed to views. Views are actually just compiled
into methods, so consider your views just a method called by your action
(which is why it has access to your instance variables).
You're probably seeing some local *methods* like "request" being available
in views and confusing them with locals :-D

-- Yehuda

On Fri, Nov 21, 2008 at 9:39 PM, Hong Jiang <[EMAIL PROTECTED]> wrote:

>
> Hi Merbists,
>
> I just started working on my first Merb project. From the examples
> I've seen, both member variables (@varname) and regular local
> variables (varname) can be passed from controllers to views. I guess
> it's because each request has its own instance of the controller, so
> it doesn't really matter. Is that correct? Is there any reason to
> prefer one style over the other? I just thought I might be missing
> something.
>
> Thanks.
>
> -H
> >
>


-- 
Yehuda Katz
Developer | Engine Yard
(ph) 718.877.1325

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

Reply via email to