UbiquoActivity support for nested controllers #29

Open
beltrachi opened this Issue Aug 20, 2012 · 0 comments

Projects

None yet

1 participant

@beltrachi
Collaborator

When you have a:

ubiquo/blog/123/post/23

and want to register the activity on the model post, it raises an exception when rendering activity as it does not know how to generate an url based on {:controller => :post, :id => 23}

On ubiquo activity, we should store a serialized field with the url params to build that url. Those parameters will be passed to url_for to point to the controller that performed the action.

In this case woluld be:
{:controller => "ubiquo/posts", :blog_id => 123, :id => 23}

which is enough to build the link to it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment