Hallo Werner, On Thu, Jun 19, 2008 at 2:01 PM, Werner Laude <[EMAIL PROTECTED]> wrote: > 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 ????
Du musst natürlich schon noch ein Field "permalink" im Model haben, wo dann der Permalink hingespeichert wird. Hast Du den angelegt? Ausserdem: hat MyResource auch sowas wie ein name, label oder title? Wenn nicht, dann muss das dem acts_as_url_param mitgeteilt werden. Andreas -- http://howflow.com/ 'Digg' for the rest of us. Open tricks, tips, howtows _______________________________________________ rubyonrails-ug mailing list [email protected] http://mailman.headflash.com/mailman/listinfo/rubyonrails-ug
