diff --git a/app/models/page.rb b/app/models/page.rb index 3db489b..ff0cbab 100644 --- a/app/models/page.rb +++ b/app/models/page.rb @@ -12,6 +12,7 @@ # class Page < ActiveRecord::Base acts_as_versioned + acts_as_taggable belongs_to :owner, :polymorphic => true validates_presence_of :title diff --git a/app/models/tag.rb b/app/models/tag.rb new file mode 100644 index 0000000..972262c --- /dev/null +++ b/app/models/tag.rb @@ -0,0 +1,2 @@ +class Tag < ActiveRecord::Base +end diff --git a/app/views/pages/_page.rhtml b/app/views/pages/_page.rhtml index cb24886..65b8c54 100644 --- a/app/views/pages/_page.rhtml +++ b/app/views/pages/_page.rhtml @@ -11,7 +11,7 @@ <%= @page.html %>