会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
小狸的窝
博客园
首页
新随笔
联系
订阅
管理
2013年12月18日
f.select
摘要: 10).order('created_at desc').map{|a|[a.name,a.id]}, @activity.id), {}, :class => "input-select" %>
阅读全文
posted @ 2013-12-18 12:17 小狸的窝
阅读(411)
评论(0)
推荐(0)
2013年12月17日
jquery查找上面同级标签
摘要: $('margin').prev();他的上一个节点$('margin').next();他的下一个节点$(this).prevAll(); 当前元素上面所有的节点
阅读全文
posted @ 2013-12-17 18:53 小狸的窝
阅读(416)
评论(0)
推荐(0)
rails 页面返回按钮的做法
摘要: request.env["HTTP_REFERER"]或者 request.referer 我个人喜欢 request.refererredirect_to :back
阅读全文
posted @ 2013-12-17 12:18 小狸的窝
阅读(381)
评论(0)
推荐(0)
2013年12月13日
查询自己的外网 ip 地址
摘要: curl ifconfig.me
阅读全文
posted @ 2013-12-13 13:57 小狸的窝
阅读(240)
评论(0)
推荐(0)
2013年12月12日
登陆按钮绑定回车事件
摘要: true, style: 'z-index:999999999999px;', class: 'hd' do %> 登录忘记密码 | 申请试用 > 登录
阅读全文
posted @ 2013-12-12 20:50 小狸的窝
阅读(1601)
评论(0)
推荐(0)
2013年12月10日
链接中中文处理方法
摘要: URI.escape(keyword)link = "http://search.21so.com/?query=#{URI.escape(keyword)}&offset=#{page}"URI.encode()URI.encode(request.base_url + "/api/map_url?lat=#{lat}&lng=#{lng}&name=#{name}&address=#{address}")
阅读全文
posted @ 2013-12-10 19:56 小狸的窝
阅读(415)
评论(0)
推荐(0)
2013年12月9日
rails计算倒计时
摘要: 过期
阅读全文
posted @ 2013-12-09 20:17 小狸的窝
阅读(291)
评论(0)
推荐(0)
git操作
摘要: git clonegit@zuozhe.com:/dyne/repos/dfdf.git dfdf(这步已经执行过,不用执行)git branch -d dev(删除本地分支dev的操作)git branch -vrgit branch -v1. 检出并跟踪远程分支git checkout --track -b staging origin/staging2. 如果不在本地分支下修改了代码,需要执行git stash,切换到本地分支再执行git stash pop然后在本地分支提交。1)在分支staging下创建本地分支devgit checkout staginggit pullgit ch
阅读全文
posted @ 2013-12-09 17:44 小狸的窝
阅读(370)
评论(0)
推荐(0)
redis安装配置
摘要: linux:http://blog.csdn.net/liuxingyu_21/article/details/16116561http://blog.itpub.net/28624388/viewspace-769324osx:http://anythink.com.cn/home/install-redis-in-macos.htmlhttp://songzhan.iteye.com/blog/1893662
阅读全文
posted @ 2013-12-09 10:32 小狸的窝
阅读(133)
评论(0)
推荐(0)
.rvmrc 指定项目使用的ruby和gemset
摘要:
阅读全文
posted @ 2013-12-09 09:53 小狸的窝
阅读(171)
评论(0)
推荐(0)
下一页
公告