« Back to blog

Changing ubiquo plugin routes

Hi all,

Today I needed to create an Ubiquo based project with something special. This project is just an ubiquo project, without public part. So, I wished to move the /ubiquo routes to / .

This is the original code provided by the ubiquo generator:

This generates the typical Ubiquo routes, everithing inside /ubiquo. To remove that, or to change to /admin, just do that:

If :path_prefix is nil then all the routes provided by the plugins will be located in /, If you need to move to /admin, replace nil with "admin" or whatever you need.

That's all, I hope it helps you.

Comments (2)

Jul 12, 2010
Great tip.
Nov 15, 2010
tombart said...
just to make it clear, for mapping your own controllers inside ubiquo you should use something like this:

https://gist.github.com/700489

Also with the solution above routes from admin.from_plugin :ubiquo_design (for a public part) are mapped with prefix: /admin/:category/:url_name etc.

Leave a comment...