I'm writing an app with multiple engines. Wice Grid works ok on the core module (where it is installated as a dependency), but cannot work on the other modules, it raises an UrlGenerationError (ActionController::UrlGenerationError in Iuris::Contacts::Contacts#index) in browser.
Controller (#Wice::WiceGrid:0xb5212838 is created):
def index
@contacts = current_user.contacts
@contacts_grid = initialize_grid(Iuris::Contacts::Contact)
# same result with initialize_grid(Iuris::User)
end
View:
<%= grid @contacts_grid do |g|
g.column do |task|
task.id
end
end -%>
The Engine is namespaced (isolate_namespace Iuris) in engine.rb in core/lib/iuris/core folder, and mounted in parent app:
Rails.application.routes.draw do
mount Iuris::Core::Engine => "/", as: 'iuris'
end
The question is, am I doing something wrong? or is not possible what I am trying to do???
Thanks in advance!!!
(btw, maybe it is obvious, but I am not an experienced programmer)
Hi,
I'm writing an app with multiple engines. Wice Grid works ok on the core module (where it is installated as a dependency), but cannot work on the other modules, it raises an UrlGenerationError (
ActionController::UrlGenerationError in Iuris::Contacts::Contacts#index
) in browser.Info:
development.log:
Controller (#Wice::WiceGrid:0xb5212838 is created):
View:
The Engine is namespaced (
isolate_namespace Iuris
) in engine.rb incore/lib/iuris/core
folder, and mounted in parent app:The question is, am I doing something wrong? or is not possible what I am trying to do???
Thanks in advance!!!
(btw, maybe it is obvious, but I am not an experienced programmer)