On 16 Apr, 13:59, Luke Galea <
ldga...@gmail.com> wrote:
> I'm running edge, although last updated a few weeks ago.
>
> Specifically the problem is just the smart_url isn't expecting the
> namespacing.. Everything else works though.
I'm not sure if this will help you, but I encountered difficulties
with r_c and namespacing a couple of months ago, and sent a patch (see
below... not sure if it's been incorporated yet). Since I did this
helpers.rb has been split so I think the changes now need to be made
in nested.rb and current_objects.rb.
Index: vendor/plugins/resource_controller/lib/resource_controller/
helpers.rb
===================================================================
--- vendor/plugins/resource_controller/lib/resource_controller/
helpers.rb (revision 457)
+++ vendor/plugins/resource_controller/lib/resource_controller/
helpers.rb (working copy)
@@ -24,7 +24,7 @@
# Used internally to return the model for your resource.
#
def model
- model_name.to_s.camelize.constantize
+ (self.class.parent.to_s + "::" +
model_name.to_s.camelize).constantize
end
@@ -121,7 +121,7 @@
# Like the model method, but for a parent relationship.
#
def parent_model
- parent_type.to_s.camelize.constantize
+ (self.class.parent.to_s + "::" +
parent_type.to_s.camelize).constantize
end
# Returns the current parent object if a parent object is
present.