Am 26.05.2008 um 17:14 schrieb Andreas Roedl:

Welche Plugins nutzt ihr um aussagekräftiger URL's zu machen..
Es gibt ja einiges..welches ist empfehlenswert?

acts_as_url_param


Hallo Andreas..

kannst du mir bitte noch etwas dazusagen..
Ich habe das Plugin installiert und im Gegensatz zu anderen Url Plugins geschieht überhaupt nix.

Habe wie in der readme beschrieben

# use the url_param column as the model's url. It will be set and/or modified whenever the default method changes. # The default methods, in order of precedence, are: :name, :label, :title
class MyResource < ActiveRecord::Base
  acts_as_url_param
end

bei mir =>

class Therapist < ActiveRecord::Base
  acts_as_url_param
......
auch die anderen Beispiele klappen nicht, muß da noch was anders rein?

def to_param
 end  ????

Gruß


Werner Laude
Lindenburger Allee 22  -  50931 Köln

0221.8805 635

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

http://www.webagentur-laude.de

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~





_______________________________________________
rubyonrails-ug mailing list
[email protected]
http://mailman.headflash.com/mailman/listinfo/rubyonrails-ug

Antwort per Email an