保留了一些资产,但每次都上传了很多资产(其他的是tiny_mce文件,还有静态图像文件),即使我什么都没改变.
我在雪松堆栈上使用Heroku,以及资产同步gem的v.0.5.4.
Heroku推送日志的一部分:
Uploading: assets/logo_na.png
Uploading: assets/icons/woofunction-icons/home_32.png
Run Code Online (Sandbox Code Playgroud)
(尚未更改)
Ignoring: assets/application-2b6fe7367c39811f8bae3c83bd39e8bf.js.gz
Ignoring: assets/application-44fd5226ff0852aeecfcda68b9aa755c.css.gz
Run Code Online (Sandbox Code Playgroud)
(这些也没有改变,但被正确忽略.)
这曾经工作得很好,问题出现在我将应用程序移动到heroku欧洲堆栈后.我还添加了turbo-sprockets-rails3(0.3.6)gem,上传的内容没有任何明显差异.
从Rails 3.0x升级到3.2.11后,我收到以下错误:
There're too many years options to be built. Are you sure you haven't mistyped something? You can provide the :max_years_allowed parameter
Run Code Online (Sandbox Code Playgroud)
码:
<%= f.date_select :to,
:start_year => Time.now.year - 80,
:discard_day => true,
:include_blank => true %>
Run Code Online (Sandbox Code Playgroud)
我还尝试包含:max_years_allowed参数但没有成功,我该如何解决这个问题?
我正在尝试使用Koala/Omniauth添加来自用户的应用请求
@graph = Koala::Facebook::API.new(current_user.omnitoken)
@graph.put_object("me", "apprequests", {:appid => MY_APP_ID, :to => USER_ID, :message => "Come join me!"} )
Run Code Online (Sandbox Code Playgroud)
我没有收到任何错误,但请求没有到达用户.代码是否正确/我错过了什么?
编辑:我邀请的用户尚未(尚未)接受该应用程序,但是IS邀请的用户是否可以这样做或者是否需要用户弹出窗口?
当我使用以下脚本将数据库下载到本地 postgresql 数据库时,我在 Heroku 上有一个应用程序(它是最新的并且运行了最新的迁移):
heroku pgbackups:capture --expire --app myapp
echo "Captured database on heroku"
curl -o latest.dump `heroku pgbackups:url --app myapp`
echo "Downloaded database"
pg_restore --verbose --clean --no-acl --no-owner -h localhost -d cooking latest.dump
echo "Database restored"
Run Code Online (Sandbox Code Playgroud)
然后我启动我的本地服务器,我收到这样的错误:
ActiveRecord::PendingMigrationError 迁移正在挂起;运行“bin/rake db:migrate RAILS_ENV=development”来解决这个问题。
我尝试删除和重置我的旧数据库而不做任何更改。
heroku ×2
amazon-s3 ×1
apprequests ×1
date ×1
facebook ×1
forms ×1
koala ×1
postgresql ×1
ruby ×1