自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(17)
  • 收藏
  • 关注

原创 rails 开发工具 textmate

增强 textmate 功能---Validate and Save your Ruby in TextMate http://drnicwilliams.com/2010/06/01/validate-and-save-your-ruby-in-textmate-with-secret-rubinus-superpowers/使用 app scrolls生成 rails 项目...

2014-02-23 22:59:11 107

原创 rails 调试

#24 The Stack Trace A plugin called Rails Footnotes will turn the lines from the stack trace into clickable links that will open the appropriate file in TextMate. To install it, run the following li...

2014-02-23 22:57:17 95

原创 rails 小技巧

[color=blue]#Rails Tip 1 Actions Are Methods http://errtheblog.com/posts/1-actions-are-methods[/color][code="ruby"]class PostsController < ApplicationController def list_by_author list :cond...

2014-02-23 22:55:52 121

原创 ruby 小技巧

[code="ruby"]#Track 1: The C in MVC #irb Mix Tape http://errtheblog.com/posts/24-irb-mix-tape#深入讲解 app http://pragmaticstudio.com/blog/2006/4/4/running-your-rails-app-headless$ ruby script/cons...

2014-02-23 21:18:30 136

原创 rails 小代码合集 view controller model

[code="ruby"]Rails Create an image with link using the image helper 01.gemfile[/code][code="ruby"]#long_block_rhs.rb def self.logger @logger ||= begin (defined?(Rails) && Rails.logger...

2014-02-23 13:18:38 276

原创 rails bash

[color=blue]1、一个完整的rails app自动生成bash[/color][quote]#!/bin/bashclearecho -e "Preparing to start ...\n"cd /Users/gelias/workspace/ruby echo -e "removing oldest version ... \n"rm -rf /Use...

2014-02-22 21:48:35 131

原创 实用工具--rails 命令、generator

[code="java"]1、rails 基本rails new rails-bootstrap -m https://raw.github.com/RailsApps/rails-composer/master/composer.rbrails new User_Auth -d mysqlrails new $1 -m https://raw.github.com/Rails...

2014-02-22 20:52:13 133

原创 rails 版本 更新/升级 release note

升级到 Rails 4,你的应用需要准备什么? 升级到 Rails 4 http://www.oschina.net/translate/get-your-app-ready-for-rails-4?print

2014-02-22 14:02:52 114

原创 理解rails gems plugins

[color=blue]#33 Making a Plugin[/color][quote]注意 这种手法,可能对 rails 4 不再起作用rails4 http://guides.rubyonrails.org/plugins.html关于废弃插件的说明 https://github.com/rails/rails/commit/dad7fdc5734a3813246f238a...

2014-02-22 13:06:38 159

原创 日期 、路由辅助方法

[color=blue]#31 Formatting Time[/color][code="ruby"]方法一:Task.first.due_at.to_s =>2009-02-19 00:00:00 UTCTask.first.due_at.to_s =>(:long) February 19, 2009 00:00Task.first....

2014-02-22 11:48:16 85

原创 Authentication 用户登录 用户权限相关

[quote]# 19Where Administration Goes#20 Restricting Access#21 Super Simple Authentication 以上三篇构一组 Authentication[/quote][color=blue]# 19Where Administration Goes[/color][code="ruby"]script/ge...

2014-02-21 21:20:10 691

原创 ActiveRecord

[color=blue]ActiveRecord 4新特性 [url]http://www.oschina.net/translate/get-your-app-ready-for-rails-4?print[/url][/color][code="ruby"]ActiveRecord 范围需要一个 Callable 对象。在 Rails 4 中,所有 ActiveRecord 范...

2014-02-21 20:39:42 179

原创 工作相关

# 工作经历:2年制造业ERP开发及管理经验2年旅游信息化整体方案5年欧美软件外包开发及管理经验兴趣爱好:本人专注于软件项目,目前为Agile所倾倒,喜欢SCRUM、XP、团队建设,同时对.Net、Ruby on Rails、开源软件、软件质量保证有极大的兴趣. 如果你不想加班, 如果你爱学习技术,钻研技术,如果你想和很多优秀的同事一起工作,那就请赶紧 联系我wangdes...

2014-02-21 20:27:55 81

原创 rails 开发工具相关

#使用TextMate进行Ruby On Rails开发推荐插件ruby-on-rails-tmbundlehttps://github.com/drnic/ruby-on-rails-tmbundle/tree/mastermkdir -p ~/Library/Application\ Support/TextMate/Bundlescd ~/Library/Applic...

2014-02-21 20:14:22 117

原创 rails view session layout

[color=blue]#208 erb-blocks[/color][code="ruby"]简介:在erb中使用blocks,可以为 html,封装逻辑module ApplicationHelper def admin_area(&block) content_tag(:div, :class => "admin", &block) if admin? en...

2014-02-21 19:00:02 86

原创 Rails版本区别

Rails版本区别 http://blog.csdn.net/yangbinfc/article/details/6153290rails toolshttps://www.ruby-toolbox.com/rails3 中的一些命令记录http://blog.sina.com.cn/s/blog_63eb3eec01013ffb.html...

2014-01-28 11:52:53 147

原创 ruby 可用链接

http://www.mockobjects.com/http://www.martinfowler.com/bliki/TestDouble.htmlhttps://github.com/rspec/rspec-mockshttp://railsapps.github.io/tutorial-rails-devise-rspec-cucumber.html#htt...

2014-01-26 10:15:52 105

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除