![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Ruby & Rails
文章平均质量分 72
dengxingbo
这个作者很懒,什么都没留下…
展开
-
Ruby on Rails技术示例(留言本)
原创 2009-06-04 18:41:00 · 587 阅读 · 0 评论 -
Ruby and Rails学习网站
Programming Ruby---The Pragmatic Programmers Guidehttp://www.ruby-doc.org/docs/ProgrammingRuby/html/index.html 陆续更新中。。。原创 2009-11-16 13:59:00 · 401 阅读 · 0 评论 -
convert between characters and values
转自:http://snippets.dzone.com/posts/show/4041 // character to ASCII value: use ??a # => 97?/n # => 10// string to integer: use []a[0] # => 97hallo[1] # => 97//转载 2009-11-10 17:23:00 · 345 阅读 · 0 评论 -
Rails:find_by_sql
# Executes a custom SQL query against your database and returns all the results. The results will # be returned as an array with columns requested encapsulated as attributes of the model原创 2009-11-05 17:54:00 · 4272 阅读 · 0 评论 -
ROR汇集---Authlogic
摘自:http://github.com/binarylogic/authlogic_example/tree/masterAuthlogic Example AppThis is an example of how to use Authlogic in a rails app. Authlogic is aclean, simple, and unobtrusive r原创 2009-09-11 17:05:00 · 1171 阅读 · 0 评论 -
ROR汇集---Permissions Control
http://pivotallabs.com/users/nick/blog/articles/272-access-control-permissions-in-railshttp://railstips.org/2009/4/20/how-to-add-simple-permissions-into-your-simple-app-also-thoughtbot-rules原创 2009-09-11 16:59:00 · 444 阅读 · 0 评论 -
ROR汇集---aasm
aasm的工作原理其实是状态机,与state_machine基本一致,关于state_machine的部分信息可以参考:http://flyingzl.javaeye.com/blog/362207 工作原理图: 以下内容转自:http://github.com/rubyist/aasm/tree/master AASM - Ruby state machi原创 2009-09-08 11:00:00 · 3975 阅读 · 0 评论 -
ROR汇集---Layout
转自:Rails宝典之第七式: layout详解一般来说layout有如下五种: 1、Gobal Layout2、Controller Layout3、Shared Layout4、Dynamic Layout5、Action Layout 假设我们有一个views/projects/index.rhtml页面:转载 2009-09-05 16:47:00 · 594 阅读 · 0 评论 -
ROR汇集---Routing
摘自:http://guides.rubyonrails.org/routing.html 1 The Dual Purpose of RoutingRails routing is a two-way piece of machinery – rather as if youcould turn trees into paper, and then turn pape转载 2009-09-05 16:08:00 · 922 阅读 · 0 评论 -
ROR汇集---memcached
转自:http://nubyonrails.com/articles/memcached-basics-for-rails Many speedysites use memcached to save the results of expensive database queriesand intense rendered templates. This is a basic原创 2009-09-07 18:09:00 · 645 阅读 · 0 评论 -
ROR汇集---Httparty
httpartyDESCRIPTION:Makes http fun again! FEATURES/PROBLEMS:Easy get, post, put, delete requests Basic http authentication Default request query string parameters (ie: for api keys原创 2009-09-07 18:08:00 · 1211 阅读 · 0 评论 -
ROR汇集---will_paginate
转自:http://github.com/mislav/will_paginate/tree/masterWillPaginatePagination is just limiting the number of records displayed. Why should you let it get in your way while developing, then? This plu原创 2009-09-07 18:07:00 · 843 阅读 · 0 评论 -
ROR汇集---Render
转自:http://www.rubyonrailsexamples.com/rails-tips/rails-render/Rails Render is a strong method that helps you to render your web pages. It comes with many flavors including: 1) Render action: ren转载 2009-09-07 16:49:00 · 1345 阅读 · 0 评论 -
ROR汇集---Transaction
Transactions are protective blocks where SQL statements are only permanent if they can all succeed as one atomic action. The classic example is a transfer between two accounts where you can on转载 2009-09-04 11:34:00 · 682 阅读 · 0 评论 -
ROR汇集---Rending
摘自:http://guides.rubyonrails.org/layouts_and_rendering.html 1 Overview: How the Pieces Fit Together This guide covers the basic layout features of Action Controller and Action View.转载 2009-09-05 16:47:00 · 725 阅读 · 0 评论 -
使用ActionMailer 的 STMP方式发送邮件
演示: class Tester< ActiveRecord::Base def self.send_mail MailPoster.deliver_file(receive@126.com,sender@126.com, public/images/rails.png, image/jpeg) end class MailPoster < Actio原创 2009-12-04 11:37:00 · 3120 阅读 · 0 评论