diff --git a/app/assets/stylesheets/specific/news_updates.css.scss b/app/assets/stylesheets/specific/news_updates.css.scss new file mode 100644 index 000000000..8ca16154d --- /dev/null +++ b/app/assets/stylesheets/specific/news_updates.css.scss @@ -0,0 +1,7 @@ +div#c-news-updates { + div#a-edit, div#a-new { + .hint { + display: block; + } + } +} diff --git a/app/models/news_update.rb b/app/models/news_update.rb index 5fa37bbc0..29755564b 100644 --- a/app/models/news_update.rb +++ b/app/models/news_update.rb @@ -1,6 +1,6 @@ class NewsUpdate < ActiveRecord::Base belongs_to :creator, :class_name => "User" - belongs_to :udpater, :class_name => "User" + belongs_to :updater, :class_name => "User" scope :recent, order("created_at desc").limit(5) before_validation :initialize_creator, :on => :create before_validation :initialize_updater diff --git a/app/views/news_updates/index.html.erb b/app/views/news_updates/index.html.erb index 5fa51b201..be2a1872a 100644 --- a/app/views/news_updates/index.html.erb +++ b/app/views/news_updates/index.html.erb @@ -13,7 +13,7 @@
<% @news_updates.each do |news_update| %>