![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
RoR
Luciano9esu
这个作者很懒,什么都没留下…
展开
-
因为Rjs试用NetBeans
因为昨天看Rails Recipe的时候提到了rjs,于是四处寻找rjs的资料,可惜没有太大收获,却意外地想起了netbeans,这个号称有着最好ror自动补全能力的ide,在网上四处寻觅后,终于下到了一个netbeans for ruby。好不容易习惯了vim,突然换一个输入环境,非常非常不适应,不过,netbeans强大的智能识别自动补全能力确实不是吹的。...2007-06-20 09:44:46 · 79 阅读 · 0 评论 -
如果定制attachment_fu上传文件的路径和文件名
原文出处:http://the.railsi.st/2007/8/21/how-to-customize-attachment_fu-file-namesFor uploading files, it's pretty hard to beat attachment_fu. But it can be overkill for smaller projects.One issue is th...2007-10-31 16:59:14 · 184 阅读 · 0 评论 -
使用rails制作图表
原文出处:http://www.railsontherun.com/2007/10/4/sexy-charts-in-less-than-5-minutes我们的目标是使用rails制作和显示类似于下面图表:在rails中同样可以使用gurff或者jfreeChart,但是Gruff需要Rmagick来生成静态图片,假如你的图片是经常变化的,那么这个过程会非常痛苦,JFreeChart需要...2007-10-31 19:21:11 · 215 阅读 · 0 评论 -
给will_paginate加上ajax效果
原文出处:http://railsontherun.com/2007/9/27/ajax-pagination-in-less-than-5-minutes首先安装will_paginateruby script/install svn://errtheblog.com/svn/plugins/will_paginate为了使用ajax,需要下载一个js库'lowpro'http://s...2007-10-31 19:30:41 · 128 阅读 · 0 评论 -
使用Inkscape提供自己的pdf服务
原文出处:http://www.thesatya.com/blog/2007/09/inkscaperailspdf.htmlThis HOWTO explains how, given your database, a PDF form, Ruby on Rails, plus a few other things, you can produce filled-out PDF documen...2007-10-31 19:34:03 · 255 阅读 · 0 评论 -
Ambition
原文出处:http://railsontherun.com/2007/9/16/ambition-why-should-you-careBy now, you should have heard about ambition if not read the latest post from the author.Ambition has a simple goal: making you st...2007-10-31 19:36:24 · 165 阅读 · 0 评论 -
act_as_solr
原文出处:http://www.quarkruby.com/2007/8/12/acts_as_solr-for-search-and-facetingTable of Contents What is solr and acts_as_solr? Getting Started Basic usage Pagination Faceti...2007-10-31 19:39:16 · 148 阅读 · 0 评论 -
advanced act_as_solr
原文出处:http://www.quarkruby.com/2007/9/14/advanced-acts_as_solrThis article extends our acts_as_solr : search and faceting tutorial and talks about how to manage rails associations, solr indexes and mo...2007-10-31 19:40:17 · 127 阅读 · 0 评论 -
用GetText来进行ROR的国际化和本地化
IBM developerWorks上的一篇文章,直接贴地址,就不转了https://www6.software.ibm.com/developerworks/cn/education/web/wa-rails-li/index.html要注册的2007-11-22 15:17:12 · 103 阅读 · 0 评论 -
attachment_fu使用指南
原文出处:http://clarkware.com/cgi/blosxom/2007/02/24A picture might be worth a thousand words, but how many lines of code does it take to upload one to your Rails application? Sounds like a fun feature t...2007-10-31 16:56:57 · 206 阅读 · 0 评论 -
(ZZ)Cache in Rails
很经典的文章,留在blog里面做个收藏Ruby on Rails Caching Tutorial Posted by gregg When your Ruby On Rails Website gets famous you're going to wish you implemented proper caching. Are you worried? Maybe just a l...2007-09-25 15:49:46 · 265 阅读 · 0 评论 -
在一个controller中render另外一个controller中view的时候出现问题
我想在posts这个controller中的show.rhtml中render另一个controller comments中new.rhtml,以达到在一个post下显示快速回复的功能,代码如下:PostControllerdef show @post = Post.find(params[:id]) @com...2007-08-21 18:27:14 · 171 阅读 · 0 评论 -
学到关于include的一点儿知识
ruby 代码 module Test module CachingMethods def self.included(base) #在此module被include的时候会自动调用 base.send :attr_accessor, :cached_references #base指的是调用此module的类 ...2007-08-23 18:09:46 · 176 阅读 · 0 评论 -
一个简单的link_to,ROR到底在背后做了些什么?(未完)
滥用link_to会造成ror程序性能下降,其中原因是什么?一个简单的link_to背后ROR到底都作了些什么?不如追随着ror的代码让我们去看个究竟。我们通常通过如下形式调用link_to方法 <%= link_to "action_name", {:controller=>"some_controller",:action=>"some_action",:id=>xx...2007-09-14 18:20:25 · 160 阅读 · 0 评论 -
总是看到returning,这到底是个什么东东,查了一下找到了源代码
A Ruby-ized realization of the K combinator, courtesy of Mikael Brockman. ruby 代码def foo returning values = [] do values << 'bar' values << 'baz' end end foo # =&...2007-09-14 18:37:16 · 115 阅读 · 0 评论 -
在线查看rails代码和edge rails api的网址,备份,以免忘记
Edge Rails API: http://caboo.se/doc.htmlRails Code: http://dev.rubyonrails.org/browser/trunk2007-09-14 18:38:47 · 79 阅读 · 0 评论 -
一个action的process过程
ruby 代码 def process(request, response, method = :perform_action, *arguments) #:nodoc: initialize_template_class(response) assign_shortcuts(request, response) initial...2007-09-17 00:11:59 · 605 阅读 · 0 评论 -
学到三招
第一招:用ruby-debug来调试rails程序具体使用方法参考hideto的文章第二招:使用module的included回调方法ruby 代码 module M def self.included(base) #todo end end 注意这是一个类方法第三招:class_evalruby...2007-09-24 01:54:58 · 104 阅读 · 0 评论 -
(ZZ)Ruby on Rails Security Guide
Ruby on Rails Security Guide Ruby on Rails does a decent job in handling security concerns in the background. You will have to configure your application to avoid few security attacks wh...2007-09-24 21:28:43 · 205 阅读 · 0 评论 -
(ZZ)Ror on svn
正好需要,zz过来,抄袭自:http://www.surui.net/2007/01/12/rails-with-subversion-svn/首先是初始化 Rails app 的一系列命令,其中忽略了所有的 log 文件,tmp 文件,database.yml:# svn import . repository_url -m “Import” –username user# mv ...2007-12-20 19:34:48 · 107 阅读 · 0 评论