[Rails] rendering templates from an engine's app dir

András Tarsoly tarsolya at gmail.com
Thu Aug 10 11:24:00 GMT 2006


Hi there,

i have a rails application which use the active_rbac engine for user
and access control.

How can I use the original login, etc. forms which were provided with
the engine as partials in my application? I've tried all of the below
mentioned approaches and it seems so that I cannot reach the templates
provided under the [RAILS_HOME]/vendor/plugins/active_rbac/app/views
directory.

# render :partial "active_rbac/login"
# render :template "active_rbac/login"

So my question is: to be true to the DRY principle, how can i reuse
these templates in my layouts?

Thanks,
András

--
András Tarsoly
tarsolya at gmail.com


More information about the Rails mailing list