On Apr 18, 2011, at 9:14 AM, Piotroslav wrote:
> I encounter following error
>
> NoMethodError in Projects#show
> Showing app/views/projects/show.dryml where line #22 raised:
>
> undefined method `external_eng' for #<ActionView::Base:0xb1e7ee8>
>
> Extracted source (around line #22):
>
> 19: <table-plus with="&@assignmentlist" fields="engineer,
> this, dayrate, project.currency, lifecycle_state, enddate">
> 20: <header: replace />
> 21: <engineer-view:>
> 22: <% this = external_eng unless this%>
> 23: <% #this = @assignment.external_eng unless
> @assignment.engineer%>
> 24: </engineer-view:>
> 25: </table-plus>
>
In the engineer-view param, the context ('this') will already be the engineer.
The object for the row is accessible via this_parent.
--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.