From ad67798004cb41f12f62ebc0933c3b4d10dfe3a2 Mon Sep 17 00:00:00 2001 From: Raphael Date: Wed, 25 Aug 2010 18:15:38 -0700 Subject: [PATCH] User to_id on groups_with_post --- app/models/user.rb | 2 +- app/views/layouts/application.html.haml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/user.rb b/app/models/user.rb index d89a009a5..44976cbc5 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -231,7 +231,7 @@ class User end def groups_with_post( id ) - self.groups.find_all_by_post_ids( id ) + self.groups.find_all_by_post_ids( id.to_id ) end def groups_with_person person diff --git a/app/views/layouts/application.html.haml b/app/views/layouts/application.html.haml index 240805716..328ab1650 100644 --- a/app/views/layouts/application.html.haml +++ b/app/views/layouts/application.html.haml @@ -12,7 +12,7 @@ = stylesheet_link_tag "/../javascripts/fancybox/jquery.fancybox-1.3.1" /= javascript_include_tag "http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js" - = javascript_include_tag 'jquery142', 'rails', 'google' + = javascript_include_tag 'jquery-1.4.2.min', 'rails', 'google' = javascript_include_tag 'jquery.infieldlabel', 'jquery.cycle/jquery.cycle.min.js' = javascript_include_tag 'fancybox/jquery.fancybox-1.3.1.pack'