Sometimes when you override a view must pass some variables as :locals.
Now in latest master locals what your template got are automatically passed to
parent template with render :super.
For example, partial _form get columns as local variable. Previously, when you
overrided form partial you needed to use
render :super, :locals => {:columns => columns}
In other case ActiveScaffold form partial raised a nil exception
Now, columns is passed to ActiveScaffold form partial automatically, so using
render :super without locals works and doesn't raise a nil exception. If you
want to pass another variable, or a modified columns, you can do it:
render :super, :locals => {:my_own_variable => ..., :columns =>
modified_columns}
--
Sergio Cambra .:: entreCables S.L. ::.
Mariana Pineda 23, 50.018 Zaragoza
T) 902 021 404 F) 976 52 98 07 E) [email protected]
--
You received this message because you are subscribed to the Google Groups
"ActiveScaffold : Ruby on Rails plugin" 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/activescaffold?hl=en.