From 9f8600877b92729df43a6425c80f340f554ab677 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Fri, 18 Jul 2008 21:42:13 +0000 Subject: [PATCH 1/1] Stop rails moaning. --- app/views/trace/view.rhtml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/trace/view.rhtml b/app/views/trace/view.rhtml index f547f05db..585342c02 100644 --- a/app/views/trace/view.rhtml +++ b/app/views/trace/view.rhtml @@ -53,10 +53,10 @@ <% unless @trace.public? %> <%= button_to 'Make this track public permanently', :controller => 'trace', :action => 'make_public', :id => @trace.id %> <% end %> - <% if @trace.user.id == @user.id %> + <% if @trace.user == @user %> <%= button_to 'Edit this track', :controller => 'trace', :action => 'edit', :id => @trace.id %> <% end %> - <% if @trace.user.id == @user.id %> + <% if @trace.user == @user %> <%= button_to 'Delete this track', :controller => 'trace', :action => 'delete', :id => @trace.id %> <% end %> -- 2.43.2