permalink-fu

Validate no routing overlap when creating new resources in Ruby on Rails

I've got a RESTful setup for the routes in a Rails app using text permalinks as the ID for resources. In addition, there are a few special named routes as well which overlap with the named resource e.g.: # bunch of special URLs for one off views to be exposed, not RESTful map.connect '/products/specials', :controller => 'products', :ac...

Rails, How can I combine multiple model attributes to create a unique permalink using permalink_fu?

Can Permalink_fu combine 2 or more model attributes to create a unique permalink? Let's say I have a Business Model, this model contains :name, :address, :phone, :city, :state, :country etc. attributes. Right now I have permalink set up in this model only for :name has_permalink :name So I would get "/biz/name". However I would like ...

Subclassing ActiveRecord with permalink_fu in a rails engine

This question is related to extending class methods in Ruby, perhaps more specifically in the way that permalink_fu does so. It appears that has_permalink on a model will not be available in a derived model. Certainly I would expect anything defined in a class to be inherited by its derived classes. class MyScope::MyClass < ActiveRecor...

Globalize3 breaks permalink_fu

Hi All, I'm trying to use permalink_fu with globalize3. I have has_permalink :name translate :name The problem is that it doesn't keep my permalinks unicity, If I create a Product named "Test" and then another one named "Test", they both will have the permalink "test" (the first should be 'test' and the 2nd should be 'test-2').. ...