自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 rails命名约定

Model Naming:Table     line_itemsFile     app/models/line_item.rbClass     LineItemController Naming:URL    http://../store/listFile     app/controllers/store_controller.rbClass    S

2016-03-31 10:59:08 493

转载 (Rails) : NoMethodError: undefined method cost' for BCrypt::Engine:Class

gem 'bcrypt-ruby', '3.1.2'

2016-03-30 09:12:14 1536

原创 form_for的关系

controller:def edit@order = Order.find(...)endmodel object:@order.name->"Dave" #(@order in controller @order) #(:name in model @order.name)

2016-03-24 20:19:25 1134

转载 couldn't find file 'jquery.ui.effect-blind' with type 'application/javascript'

I think you are using new version (your version > 2.3.0) of jquery-rails.jQuery UI has been removed from jquery-rails gem, ≤ jquery-rails v2.3.0 still have jQuery UI ≥ jquery-rails v3.0.0 jQue

2016-03-24 16:50:49 1244

转载 rails 限制上传图片大小出现 Errno::ENOENT in MicropostsController#create 错误

Whenever I place the codeprocess resize_to_limit: [400, 400](My application works just fine without the above code.)I get the error:Errno::ENOENT in MicropostsController#createNo such fi

2016-03-09 10:41:44 723

转载 CarrierWave使用时fog错误

1:Add this to your Gemfile:gem 'net-ssh'and run bundle install after that.2:(正确)Alternatively, add this to your Gemfile:gem 'fog', '~> 1.36.0'and run bundle install. This wor

2016-03-09 09:19:05 504

原创 CarrierWave使用时fog错误

1:Add this to your Gemfile:gem 'net-ssh'and run bundle install after that.2:(正确)Alternatively, add this to your Gemfile:gem 'fog', '~> 1.36.0'and run bundle install. This worke

2016-03-09 09:12:47 397

空空如也

空空如也

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

TA关注的人

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