András Tarsoly
2006-Aug-10 11:06 UTC
[Rails] rendering templates from an engine''s app dir
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@gmail.com
András Tarsoly
2006-Aug-10 11:26 UTC
[Rails] rendering templates from an engine''s app dir
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@gmail.com
András Tarsoly
2006-Aug-10 11:26 UTC
[Rails] rendering templates from an engine''s app dir
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@gmail.com