`
ddl1st
  • 浏览: 98951 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论
文章列表
sudo apt-get install libxslt-dev libxml2-dev gem install nokogiri
文章转载自 http://consy.blog.51cto.com/2212530/399959 Ruby中Class,Object,Module这三个类定义了一些回调方法,这些方法不是默认的不过为一个类模块获对象定义了这些方法,当特定的事件发生时,将调用这些回调和钩子方法。这些回调方法一般以"ed"结尾。特定事件是指: 调用一个不存的对象方法(method_missing) 模块被混含(included/extended) 类被继承(inherited) 类或模块定义实例方法(method_added) 对象新增加一个单例方法(singleton_method_added ...
分页辅助插件(Kaminari) https://github.com/amatsuda/kaminari https://github.com/amatsuda/kaminari.git 图片上传(Carrierwave) https://github.com/jnicklas/carrierwave https://github.com/jnicklas/carrierwave.git paper_trail https://github.com/airblade/ https://github.com/airblade/paper_trail.git 邮件发送(ar_mailer) ...
http://makoomba.altervista.org/grid/
100 = :continue 101 = :switching_protocols 102 = :processing 200 = :ok 201 = :created 202 = :accepted 203 = :non_authoritative_information 204 = :no_content 205 = :reset_content 206 = :partial_content 207 = :multi_status 226 = :im_used 300 = :multiple_choices 301 = :moved_p ...
.../application.html.erb   #如果不想每个页面都加载单独放到需要的页面。 <%= javascript_include_tag 'jquery','pagination' %> www.jequery.com ../controller/news_controller.rb ......   def index     @news = News.paginate(:per_page=>10,:page => params[:page])   end ...... .../public/javascripts/pagination.js ...
首先添加gem源 gem sources -a http://gems.github.com 查看gem源 gem sources 安装 mislav-will_paginate gem install mislav-will_paginate
http://media.railscasts.com/videos/220_pdfkit.mov http://github.com/jdpace/PDFKit
http://media.railscasts.com/videos/223_charts.mov
http://media.railscasts.com/videos/213_calendars.mov

rmagick

rmagick 安装 sudo apt-get install libmagickwand-dev sudo gem install rmagick for mac brew remove imagemagick brew install imagemagick --disable-openmp --from-source

页面自动更新内容

    博客分类:
  • Ajax
railscasts  #229 Polling for Changes

html 伸缩

    博客分类:
  • Html
<html> <frameset rows="25%,*,25%"> <frame src="frame_a.htm" /> <frame src="frame_b.htm" /> <frame src="frame_c.htm" /> </frameset> </html>
rails 项目 bug自动提交。 配置exception_notification http://moyuan.iteye.com/blog/263869
number_with_delimiter(12345678, :delimiter => ".") # => 12.345.678
Global site tag (gtag.js) - Google Analytics