search for: permalinkfu

Displaying 2 results from an estimated 2 matches for "permalinkfu".

Did you mean: permalink_fu
2007 Jul 04
0
How to handle plugin dependency
...COM/OLE) and a permalink suitable for use in a url (like com-ole) so I can have urls like /article/list/com-ole. The only snag I have hit is that when I add: has_permalink :name to the Tag class definition I get a "method missing" error. I was able to get it to work by adding: extend PermalinkFu to the Tag class defnition and also putting a copy of permalink_fu.rb in the acts_as_taggable/lib directory. Is there a better way to do this? I tried adding: require ''permalink_fu'' to tag.rb but this didn''t seem to help. --~--~---------~--~----~------------~------...
2008 Sep 17
0
permalink_fu and classes with different primary_key than id?
...ass Team < ActiveRecord::Base # Primary key self.primary_key = ''team_id'' has_many :players, :foreign_key => :team_id has_permalink :city, :param => true end I am getting all kinds of trouble - that goes away if I comment out the has_permalink declaration. With PermalinkFu: >> fs = Team.new => #<Team team_id: nil, abbr: nil, city: nil, created_at: nil, updated_at: nil, permalink: nil> >> fs.team_id = 1 NoMethodError: undefined method `team_id='' for #<Team:0x2af1173c6030> from ~/20080917172814/vendor/rails/activerecord/lib/active_...