bay6 / union

rubyist community to help each other learn and improve
9 stars 8 forks source link

预览和评论,参与活动 #227

Closed hlee closed 11 years ago

hlee commented 11 years ago

screen shot 2013-07-27 at 12 44 12 am

williamherry commented 11 years ago

我本地跑production也没有问题,我比对了下本地生成的application-一长串.js文件和rubyunion上对应的文件,有些东西只有本地的有,谁知道可能的问题出在哪儿?

williamherry commented 11 years ago
diff --git a/public/assets/application-e899f0de863500bd4cf2e9cc5a04fd83.js b/home/william/tmp/application-6bab011d8dc37458651c2b169cee0264.js
index 0ee60e4..a05a80b 100644
--- a/public/assets/application-e899f0de863500bd4cf2e9cc5a04fd83.js
+++ b/home/william/tmp/application-6bab011d8dc37458651c2b169cee0264.js

-{var t;t={edit_click_callback:function(){return $(".editor_toolbar .preview").removeClass("active"),$(".create_comment #preview").addClass("hidden"),$(".create_comment #comment_content").css("display","block"),$(".editor_toolbar .edit").addClass("active"),!1},preview_click_callback:function(){var t,e;return $(".editor_toolbar .edit").removeClass("active"),$(".editor_toolbar .preview").addClass("active"),$(".create_comment #comment_content").css("display","none"),$(".create_comment #preview").removeClass("hidden"),$(".create_comment #preview").html("Loading..."),t=$(".create_comment form.new_comment").serialize(),e=$(".editor_toolbar .preview").find("a").attr("href"),$.ajax({url:e,data:t,type:"post",dataType:"html",success:function(t){return $(".create_comment #preview").html(t)}}),!1}},$(function(){return $("#activity_start_at").datetimepicker({stepMinute:5,dateFormat:"yy-mm-dd"}),$(".registry-activity.disabled").tooltip({title:"只有登录用户才可以报名参加工会活动",placement:"left"}),$(".registry-activity.disabled").mouseover(function(){return $(".tooltip").css("left",parseInt($(".tooltip").css("left"))-6+"px")}),$(".registry-activity.disabled").click(function(){return!1}),$(".editor_toolbar .edit").click(function(){return t.edit_click_callback()}),$(".editor_toolbar .preview").click(function(){return t.preview_click_callback()})})}.call(this),/*
+{$(function(){return $("#activity_start_at").datetimepicker({stepMinute:5,dateFormat:"yy-mm-dd"}),$(".registry-activity.disabled").tooltip({title:"只有登录用户才可以报名参加工会活动",placement:"left"}),$(".registry-activity.disabled").mouseover(function(){return $(".tooltip").css("left",parseInt($(".tooltip").css("left"))-6+"px")}),$(".registry-activity.disabled").click(function(){return!1})})}.call(this),/*

 Copyright 2012 Igor Vaynberg

 Version: 3.4.1 Timestamp: Thu Jun 27 18:02:10 PDT 2013

没有compile,怎么破

hlee commented 11 years ago
bundle exec rake assets:clean
bundle exec rake assets:precompile