Permalink
Browse files

Merge pull request #4 from jeady/master

Fix 2 non-critical areas of confusion for students
  • Loading branch information...
2 parents c533e73 + a035ed9 commit 319d205de689f8a7d37e307a4e449867338cec69 Richard Xia committed Oct 15, 2012
Showing with 4 additions and 1 deletion.
  1. +1 −1 app/views/admin/dashboard/_welcome.html.erb
  2. +3 −0 config/environments/production.rb
@@ -7,7 +7,7 @@
<p><strong><%= _("Content") %></strong></p>
<ul>
<li> <%= sprintf("%s %d", link_to(_("Total posts:"), :controller => 'admin/content'), @statposts) %></li>
- <li> <%= sprintf("%s %d", link_to(_("Your posts:"), :controller => 'admin/content', :search => "[user_id]=#{current_user.id}"), @statuserposts) %></li>
+ <li> <%= sprintf("%s %d", link_to(_("Your posts:"), :controller => 'admin/content', 'search[user_id]' => current_user.id), @statuserposts) %></li>
<li> <%= sprintf("%s %d", link_to(_("Categories:"), :controller => 'admin/categories'), @categories) %></li>
</ul>
@@ -28,4 +28,7 @@
# config.threadsafe!
Migrator.offer_migration_when_available = true
+
+ config.logger = Logger.new(STDOUT)
+ config.logger.level = Logger.const_get(([ENV['LOG_LEVEL'].to_s.upcase, "INFO"] & %w[DEBUG INFO WARN ERROR FATAL UNKNOWN]).compact.first)
end

0 comments on commit 319d205

Please sign in to comment.