是否可以在不使用+1按钮的情况下分享/发布到Google+?
例如,正常的推文按钮与网址链接一起工作:http://twitter.com/share? url = wattcecetcetc
当我运行rspec时,我收到此警告:
/gems/activesupport-3.1.0/lib/active_support/dependencies.rb:240:in `block in require': iconv will be deprecated in the future, use String#encode instead.
我与轨道相同的警告3.1.0,3.1.1,3.1.2.rc2版本.似乎它与sqlite3宝石有关,但我不确定.ruby 1.9.2没有警告
有什么建议怎么处理吗?
我创建了一个git存储库并用一些东西更新了它.后来我为这个项目创建了一个新目录,并为它初始化了新的git.现在我想推送更改并替换存储库中的旧内容.当我跑步时,git push origin master我得到了
! [rejected] master -> master (non-fast-forward)
error: failed to push some refs to 'git@github.com:Username/repo2.git'
To prevent you from losing history, non-fast-forward updates were rejected
Merge the remote changes before pushing again. See the 'Note about
fast-forwards' section of 'git push --help' for details.
Run Code Online (Sandbox Code Playgroud)
我该怎么做才能解决这个问题?
我有一个代码(见下文).它在Firefox中完美运行:它在单击__JL_SAVE按钮后保存提交的信息并使用户保持在同一页面上.但是在Internet Explorer和Opera中它只重定向到索引页面(index.php)并且不保存提交的信息.我该怎么做才能解决这个问题?谢谢.
这是我的代码:
<form action="index.php" id="mosForm" method="post" enctype="multipart/form-data">
<fieldset>
<legend><?=__JL_ABOUT_MYSELF?></legend>
<span class="a" onclick="showHideLegend('about_myself_1')"><?=__JL_EDIT_BLOCK;?></span>
<div id="about_myself_descr" style="display: block"><?=__JL_SELF_DESCR;?></div>
<div id="about_myself_1" style="display: none"><?php include "html/about_myself_fill.php"?></div>
<div id="about_myself_2""><?php include "html/about_myself_show.php"?></div>
</fieldset>
<fieldset>
<legend><?=__JL_ABOUT_MYSELF?></legend>
<span class="a" onclick="showHideLegend('type_1')"><?=__JL_EDIT_BLOCK;?></span>
<?php if ($typ_block) {?>
<?php /* <input type="checkbox" id="jl_type_block" name="jl_type_block" <?php if ($roon_type_block) echo 'checked ';?> /> */ ?>
<input type="checkbox" id="jl_type_block" name="jl_type_block" disabled <?php echo 'checked ';?> />
<label for="jl_type_block"><?=__JL_ON_BLOCK?></label>
<?php } else {
echo __JL_OFF_BLOCK;
}?>
<div id="about_myself_descr" style="display: block"><?=__JL_SELF_DESCR;?></div>
<div id="type_1" style="display …Run Code Online (Sandbox Code Playgroud) 我使用gitlabhq 2.5,我的团队成员签出一个名为的本地分支feature1并添加一些功能,然后推送到远程原始feature1分支.
他在"合并请求"选项卡中创建合并请求,但我无法合并他的请求.有一条警告消息显示"正在检查自动合并的能力......"
问题是什么?有没有我没有设置的东西?
如何在中间人构建页面后运行自定义操作(例如,复制文件到构建文件夹)?
我想把Readme.md源文件放到构建目录.
当我试图通过指定的艺术家获取所有音频歌曲时,我收到错误:
ActiveRecord::StatementInvalid: PGError: ERROR: column reference "artist" is ambiguous
LINE 1: ... AND (audio_translations.artist IS NOT NULL) AND (artist = '...
^
: SELECT "audios"."id" AS t0_r0, "audios"."audio_genre_id" AS t0_r1, "audios"."song" AS t0_r2, "audios"."artist" AS t0_r3, "audios"."file_id" AS t0_r4, "audios"."photo_id" AS t0_r5, "audios"."description" AS t0_r6, "audios"."position" AS t0_r7, "audios"."created_at" AS t0_r8, "audios"."updated_at" AS t0_r9, "audios"."date" AS t0_r10, "audio_translations"."id" AS t1_r0, "audio_translations"."audio_id" AS t1_r1, "audio_translations"."locale" AS t1_r2, "audio_translations"."artist" AS t1_r3, "audio_translations"."song" AS t1_r4, "audio_translations"."description" AS t1_r5, "audio_translations"."created_at" AS t1_r6, "audio_translations"."updated_at" AS …Run Code Online (Sandbox Code Playgroud) 使用 Rails 3.2.13 和 spree 2.0.2
我遇到了与动态范围下的 Rails 可安装引擎类似的问题
我的路线:
scope ':locale', locale: /en|jp/ do
mount Spree::Core::Engine, at: '/store'
root to: 'home#index'
end
Run Code Online (Sandbox Code Playgroud)
我想输出链接以更改区域设置:
<%= link_to 'JP', url_for(locale: :jp) %>
Run Code Online (Sandbox Code Playgroud)
但这输出:
<a href="/en/store/?locale=jp">JP</a>
Run Code Online (Sandbox Code Playgroud)
而不是预期的:
<a href="/jp/store">JP</a>
Run Code Online (Sandbox Code Playgroud)
- 编辑 -
当我输入ApplicationController:
def default_url_options(options={})
{ locale: I18n.locale }
end
Run Code Online (Sandbox Code Playgroud)
它在存储中设置区域设置参数两次,而不是合并它们:
http://localhost:3000/en/store/products/bag?locale=en
Run Code Online (Sandbox Code Playgroud) 我刚刚安装了MediaWiki.我必须做什么才能拥有这样的维基百科样式模板:http://i.piccy.info/i4/4b/37/fe303fda0c813c0bda717d3a1e3b.png(示例).我已经在MediaWiki CMS上安装了ParserFunctions Extension.我试图查看源代码并复制它,但它没有用.谢谢.
**对不起我的英语(这不是我的母语)*
如何排除此范围内的某些项目:
scope :within_category, ->(category) { joins(:category).where(:categories => { :id => category }) }
像这样:
scope :within_category, ->(category, item_type) { joins(:category).where(:categories => { :id => category }, :id NOT IN item_type.id) }
Run Code Online (Sandbox Code Playgroud) activerecord ×2
git ×2
ruby ×2
firefox ×1
github ×1
gitlab ×1
globalize3 ×1
javascript ×1
mediawiki ×1
middleman ×1
postgresql ×1
repository ×1
rspec ×1
scope ×1
share ×1
spree ×1
url ×1
web-services ×1
wiki ×1
wikipedia ×1