- 博客(5)
- 收藏
- 关注
原创 3 easy steps 在Rails使用jQuery
[b]1.下载安装jQuery[/b] 从[url]http://docs.jquery.com/Downloading_jQuery[/url]下载最新version的jQuery. 把下载下来的jQuery copy到public/javascripts目录,public/javascripts里面有些默认的JS文件可以delete掉,因为那些是Prototype/Script.aculo...
2008-10-08 22:04:33
144
原创 如何写一个简单的Rails Plugin
rails plugin是什么,自己google吧 :wink: 生成plugin骨架代码: [code="ruby"]ruby script\generate plugin MyPlugin[/code] 功能需求: 在BlogController中把所有符合条件的Post(Model)生成为xml 如果不使用插件,很easy : in BlogController [cod...
2008-07-15 18:14:45
206
rails theme(参考typo)
最近学习一下typo,看typo的theme是怎样实现的,顺便把theme模块抽出来,以后编写rails应用(比如Blog),直接把代码COPY进去就可以. 1)修改routes.rb, add以下code: [code="ruby"] map.with_options(:conditions => {:method => :get}) do |get| get.with_option...
2008-03-10 15:46:50
174
使用Acts As Taggable On Steroids定义标签
最近下载一个rails blog应用(Simplelog)并把它里面的acts_as_taggable plugin改为Acts As Taggable On Steroids,因为在rails2.0下总是运行出错. 1.安装 [code="ruby"] ruby script/plugin install http://svn.viney.net.nz/things/rails/plugi...
2008-01-22 15:07:43
146
使用Gmail Smtp 发送email (rails2.0)
ActionMailer是一个简单的Rails组件,应用程序可以借助它来收发电子邮件。 Gmail--你必须有一个账号和密码,没有的话快去申请[url]http://mail.google.com/mail/signup[/url] 邮件配置: 在enviroment.rb文件中: [code="ruby"] ActionMailer::Base.server_settings = ...
2008-01-21 23:59:13
1441
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅