Hi
I have two models with a relationship:
class ClubLicense < License
belongs_to :request
end
class Request < ActiveRecord::Base
has_many :club_licenses
end
Controllers:
class Requests::RequestsController < ApplicationController
require 'export_helpers'
append_before_filter :localize
layout "general"
active_scaffold :request do |config|
config.label = I18n.t('requests.listado_peticiones')
config.show.label = I18n.t('requests.labels.request_detail')
config.columns =
[:club, :items, :request_date, :validation_date, :state, :amount]
config.list.columns =
[:items, :request_date, :validation_date, :state, :amount]
config.show.columns =
[:items, :request_date, :validation_date, :state, :amount]
config.update.columns =
[:items, :request_date, :validation_date, :state, :amount]
config.create.columns =
[:items, :request_date, :validation_date, :state, :amount]
config.actions.exclude :show
config.nested.add_link(I18n.t('active_scaffold.Licenses'), :club_licenses)
config.list.sorting = {:request_date => :desc}
end
class Licenses::ClubLicensesController < LicensesController
active_scaffold :club_licenses do |config|
end
end
end
(The father class of 'ClubLicensesController', 'LicensesController' is
well defined)
I have this error:
"ActiveScaffold::ControllerNotFound - Could not find
Requests::ClubLicensesController or Requests::ClubLicenseController or
ClubLicensesController or ClubLicenseController"
I think is a namespace problem, licenses and requests controllers are
in different folders. So how can I solve it without changing the
namespaces?
Thanks,
Pablo
--
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.