- 浏览: 98951 次
- 性别:
- 来自: 上海
最新评论
-
ddl1st:
majinfei 写道wget http://kernel.o ...
Centos git 安装 -
majinfei:
wget http://kernel.org/pub/soft ...
Centos git 安装 -
ddl1st:
orcl_zhang 写道 哥看好你。
发展规划分析 -
orcl_zhang:
哥看好你。
发展规划分析 -
ddl1st:
夜鸣猪 写道还不错,我经常用到的是格式化显示通常是 datat ...
Rails 日期扩展
文章列表
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
PDF 插件 PDFKit
- 博客分类:
- Rails Plugin
http://media.railscasts.com/videos/220_pdfkit.mov
http://github.com/jdpace/PDFKit
统计图highcharts
- 博客分类:
- Rails Plugin
http://media.railscasts.com/videos/223_charts.mov
很酷的 日期插件
- 博客分类:
- Rails Plugin
http://media.railscasts.com/videos/213_calendars.mov
rmagick 安装
sudo apt-get install libmagickwand-dev
sudo gem install rmagick
for mac
brew remove imagemagick
brew install imagemagick --disable-openmp --from-source
<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