E-COM-NET
首页
在线工具
Layui镜像站
SUI文档
联系我们
推荐频道
Java
PHP
C++
C
C#
Python
Ruby
go语言
Scala
Servlet
Vue
MySQL
NoSQL
Redis
CSS
Oracle
SQL Server
DB2
HBase
Http
HTML5
Spring
Ajax
Jquery
JavaScript
Json
XML
NodeJs
mybatis
Hibernate
算法
设计模式
shell
数据结构
大数据
JS
消息中间件
正则表达式
Tomcat
SQL
Nginx
Shiro
Maven
Linux
rails3
rails3
高端observer模式
ActiveRecord::Observer Observer类会对外部的原始类内在生命周期内实现触发行为的“回调”做出反应。当一个“模型”类担负了不是它的核心职责的功能时,使用这种方式就会减少混乱。 从上面说明中可以看出,Observer类是对Callbacks类的一种变相的补充。补充的原因是因为有些“模型”为了迁就Callbacks而做了自己不该做的事。而Observer类就是把原来
·
2010-11-01 16:00
observer
ror ide
thenetbeansidesupport
rails3
thisisagreatnews,andapantabeta3&rubyminedidn'tupdateimmedatly,theydidn'tsuitformodenrailsdevelopment
·
2010-10-31 23:00
ide
custom
rails3
scaffold template by your self
icost2daytofindthisout,hopehelpsomeone.the
rails3
provideawaytocustomthescaffoldcodewheniuserailsgscaffold_controlleradmin
·
2010-10-31 23:00
template
change rails generate controller tempalte
http://zigzag.github.com/2010/01/18/customizing-your-scaffold-template-become-easier-in-
rails3
.htmlgreakareticle
·
2010-10-31 11:00
controller
ujs
http://therailworld.com/posts/26-Using-Prototype-and-JQuery-with-
Rails3
-UJS-http://ihower.tw/blog/archives
·
2010-10-29 09:00
js
为 gem install 按上翅膀 -- gem-fast
Rails3
.0发布那阵儿,不少为安装Gem苦恼,这下载Gem的速度太不给力了。倒不是网速慢,Ruby的NET:HTTP要穿过墙,翻山过海才能到达rubyforge的服务器。
weixin_30402085
·
2010-10-28 21:00
ruby
rails3
reventl
Edge-with-jQuery-RSpec-and-Cucumber-using-RVMhttp://therailworld.com/posts/26-Using-Prototype-and-JQuery-with-
Rails3
·
2010-10-28 14:00
rails3
rails plural lib
http://deveiate.org/projects/Linguistics/wiki/English usejqueryin
rails3
http://github.com/lleger/Rails
·
2010-10-28 12:00
Rails
如何制作自己的gem
但是随着bundler的出现,
Rails3
时代我们还是写gem比较好,方便管理。所以下面只介绍如何制作属于自己的gem。开始之前先确保你机器了安装了git。
blackanger
·
2010-10-27 14:19
on
Ruby
rubygems
Rails
gem
休闲
gemspec
如何制作自己的gem
但是随着bundler的出现,
Rails3
时代我们还是写gem比较好,方便管理。所以下面只介绍如何制作属于自己的gem。开始之前先确保你机器了安装了git。
blackanger
·
2010-10-27 14:19
休闲
ruby
on
rails
gem
如何制作自己的gem
但是随着bundler的出现,
Rails3
时代我们还是写gem比较好,方便管理。所以下面只介绍如何制作属于自己的gem。开始之前先确保你机器了安装了git。
blackanger
·
2010-10-27 14:19
on
Ruby
Rails
rubygems
gem
休闲
gemspec
ruby1.9.2+gem1.3.7+
Rails3
.0.1 windows下安装
最近学习ruby,也做一些学习笔记。不对之处希望大家谅解并指出。谢谢。 1.ruby下载在http://rubyforge.org/frs/?group_id=167网站中可以找到各种版本的Ruby,我选择了1.9.2-p0版本。2.ruby安装安装过程中在选择路径的时候,勾选上“添加到环境变量”,如图:3.检查ruby、gem版本安装成功以后,输入ruby-v;gem-v来检查安装的版本。4.安
zhanglun1225
·
2010-10-27 10:00
windows
Ruby
Rails
写了一个 oauth 插件,用
rails3
测试通过
写了一个
rails3
插件,便于使用 oauth 接入各种外部网站: 地址 http://github.com/fsword/oauth_side 可以 clone http://github.com
fsword
·
2010-10-25 19:00
c
git
Access
Rails
Gmail
以AJAX发送查询条件给服务器并用partial显示查询结果
经验证
rails3
.0.1下 用不了form_remote_tag/link_to_remote 了,会提示方法没定义。
qingshou117
·
2010-10-23 00:00
Ajax
rails3
.0.1数据库从sqlite3迁移到mysql
rails3
.0.1数据库从sqlite3迁移到mysql时出错: d:\ror\myapp>rake db:migrate (in d:/ror/myapp) rake aborted!
qingshou117
·
2010-10-21 03:00
mysql
Rails
ruby1.9.2和
rails3
.0.1 环境部署
ruby1.9.2和
rails3
.0.1已经发布,windows下搭建最新环境过程: 从http://rubyforge.org/frs/?
qingshou117
·
2010-10-20 01:00
c
Ruby
Rails
ActiveRecord
rack
Rails3
Route用法集锦
阅读更多默认路由:#
Rails3
:match'/:controller(/:action(/:id))'#Rails2:map.connect':controller/:action/:id'正则路由:
inosin
·
2010-10-16 20:00
Ruby
Rails
Blog
Rack
HTML
Rails3
Route用法集锦
默认路由: #
Rails3
: match '/:controller(/:action(/:id))' # Rails2: map.connect ':controller/:action
inosin
·
2010-10-16 20:00
html
Blog
Ruby
Rails
rack
Agile Web Development with Rails,Fourth Edition 第四版
还没有正式出来,看到有人找,老猪就早点放个吧主要是包括了
Rails3
的内容各位enjoy!
夜鸣猪
·
2010-10-14 12:00
Web
Ajax
git
Rails
rspec
ubuntu10.10 ruby1.9.2
rails3
.0 mysql 架设过程
sudo apt-get install build-essential sudo wget ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.2-p0.tar.bz2 sudo tar jxvf ruby-1.9.2-p0.tar.bz2 sudo cd ruby-1.9.2-p0 sudo ./configure -prefix=/usr/local
pzwsquare
·
2010-10-12 14:00
mysql
nginx
ext
Ruby
Rails
XManager - Scrum管理系统
XManager使用Ruby1.9.2+
Rails3
+Cucumber+Rspec进行BDD实践开发。
非飞
·
2010-10-10 21:00
项目管理
rspec
Git
Rails
Ruby
Rails3
之父Yehuda离开Engine Yard投奔html5
Yehuda Katz是新近刚刚发布的
Rails3
.0框架的主力开发人员,今天他在Engine Yard的博客上面发表告别文章,告诉大家,他已经从Engine Yard公司辞职,进入一家新的创业公司,从事
cwydfq
·
2010-10-09 10:00
框架
html5
datamapper
Ruby
Rails
创建一个
rails3
engine
rails3
中的engine 比较强大,现在写gem, 可以以 engine为基础构建。而且慢慢地可以把rails程序分模块拆分。Rails 3.1中更可以把engine以rake的方式加载。。
doabit
·
2010-10-06 05:00
java
cms
Rails
ActiveRecord
rspec
Rails3
自动测试环境 shoulda + watchr
对于测试我一直写的很烂,RSPEC曾经看过,不过到头也没写出什么好的测试,最近发现了shouda,看到写法很简单,例如: class PostTest < Test::Unit::TestCase should belong_to(:user) should have_many(:tags).through(:taggings) should vali
doabit
·
2010-10-02 15:00
linux
Ruby
rspec
Scaling Rails很不错的视频
自从railscasts开始讲解
rails3
后就很久没看了。 偶然看到别人推荐的这个视频Scaling Rails.
orcl_zhang
·
2010-09-29 18:00
.net
Blog
Rails
推荐
rails3
二个后台界面gem,后台管理 rails_admin,后台模板:web-app-theme
rails_admin:最最近出的一个
rails3
的后台管理gem,依赖devise插件,试用了下感觉还行,不过有个问题就是textarea如果用kindeditor之类的编辑器无效。
doabit
·
2010-09-29 13:00
Web
Rails
authlogic+
rails3
的一个小问题
if you run rails g authlogic:session user_session, got Could not find generator authlogic:session. maybe you can try this: gem 'authlogic', :git => 'git://github.com/odorcicd/authlogic.git',
charm
·
2010-09-28 10:00
git
Rails
在ubuntu上用rvm 布属ree + apache2 + passenger
环境: ubuntu server 10.04 rvm 1.0.11
rails3
ruby 1.8.7 (2010-04-19 patchlevel 253) passenger (2.2.15)
xiao2004
·
2010-09-26 14:00
apache
git
ubuntu
Ruby
Rails
Rails3
学习笔记一,中秋假期
面对即将到来的长假,打算把
Rails3
好好的学习一把,鉴于自己Rails2也是菜鸟水准,首先端正态度,好好学习,天天向上。其次学习方法论依旧是战争中学习战争,先拿公司的一个内部项目开刀。
fanjunt
·
2010-09-24 21:00
jquery
Ruby
Rails
Gmail
rspec
the rspec book 下载
阅读更多这是写rspec和cucumber一直翻的书,当前最新版本是beta15包括一些
Rails3
和spec2的内容。这一版是网上传的,可以凑合着看。
夜鸣猪
·
2010-09-20 18:00
rspec
Ruby
Rails
UP
the rspec book 下载
这是写rspec和cucumber一直翻的书,当前最新版本是beta15包括一些
Rails3
和spec2的内容。这一版是网上传的,可以凑合着看。
夜鸣猪
·
2010-09-20 18:00
Ruby
UP
Rails
rspec
rails3
某些变化
1.1 安装 写道 gem install rails --pre 1.2 rails application object rails 3 支持同一个进程运行多个rails 应用, 每一个rails 应用现在必须有一个相应的应用对象, 这个对象定 义在 config/applica
javaqiang
·
2010-09-20 10:00
C++
c
C#
Rails
mysql thinking_sphinx coreseek
rails3
版本:coreseek 3.2.13 thinking_spinx 2.0.0.rc2
rails3
.0.0 在linux下修改3个my.cnf的1个/etc/mysql/
tjcjc
·
2010-09-19 02:00
mysql
linux
Rails
升级到
rails3
+ruby1.9.2过程中遇到的各种问题
由于ubunut系统中自带的rails和ruby版本都比较低,所以打算干掉以前的版本重新编译,遇到了N多麻烦,倒也是好事,又认识到了很多问题,明白了一些东东的含义 一 升级ruby1.8.7到1.9.2 首先下载ruby-1.9.2 wget ftp://ftp.ruby-lang.org//pub/ruby/1.9/ruby-1.9.2-p0.tar.gz tar
hotsunshine
·
2010-09-18 21:00
mysql
linux
ext
Ruby
Rails
paginate in
rails3
will-paginate-rails-3-per-pageIamtryingtolimitthenumberofelementsreturnedwithmislav'swillpaginatewith
Rails3
tjcjc
·
2010-09-18 02:00
git
UP
Rails
ActiveRecord
Rails3
中script命令的替代
装定了rails+ruby 1.9.2 搞了小程序,发现script命令都变了 官网上是这么说的 script/* replaced by script/rails 另外提示 运行 rails --help 就可以查看多有的选项 选项如下 generate Generate new code (short-cut alias: "g"
hotsunshine
·
2010-09-16 22:00
C++
c
ubuntu
Ruby
Rails
Windows下配置
Rails3
开发环境
Windows下配置
Rails3
开发环境 不少同学都喜欢在Mac下用Rails开发网站。可惜本人没有条件,就一本几年前的小黑。
javaqiang
·
2010-09-16 17:00
windows
mysql
dos
Ruby
Rails
rails3
+ paperclip图片加水印
1. 新建项目,并移除index.html rails new paperclip-water rm public/index.html 2. 修改Gemfile 添加paperclip gem 'paperclip' 3. 新建asset r ails g scaffold
doabit
·
2010-09-13 15:00
html
OS
Ruby
ActiveRecord
Rails
Passenger 使用笔记
2.Apache +
rails3
.0 出现 404 错误.
wuhuizhong
·
2010-09-12 18:00
oracle
nginx
centos
Ruby
Rails
Rails3
进阶之一:学习资源列表
1.在学习bundler之前,先了解一下gem与plugin的区别,不要把所有的东西都当作gem来处理了,否则会遇到许多“can not find file/gem...” http://blogs.sun.com/arungupta/entry/totd_6_difference_between_ruby 2.学习bundler: http://gembundler.com/
kenrome
·
2010-09-05 01:00
.net
git
Ruby
sun
Rails
Rails3
进阶之一:学习资源列表
1.在学习bundler之前,先了解一下gem与plugin的区别,不要把所有的东西都当作gem来处理了,否则会遇到许多“can not find file/gem...” http://blogs.sun.com/arungupta/entry/totd_6_difference_between_ruby 2.学习bundler: http://gembundler.com/
kenrome
·
2010-09-05 01:00
.net
git
Ruby
sun
Rails
win7 下
rails3
.0安装
先安装了 官方的 1.9.2的 ruby windows安装包 然后 gem install rails 需要 sqlite官方下载 dll的zip包 还有 mysql 的 dll 放到system32目录下 然后 bundle install Gemfile 需要加 gem 'mysql','2.8.1' 我用的数据库是mysql netbe
csc365kl
·
2010-09-02 15:00
mysql
sqlite
Ruby
Rails
grails
OpenId Authentication For
Rails3
阅读更多OpenIdAuthenticationFor
Rails3
1.AddGemGemFilegem'ruby-openid'gem'rack-openid','>=0.2.1',:require=>
myrev
·
2010-09-01 22:00
Rack
Rails
Git
Flash
Ruby
OpenId Authentication For
Rails3
OpenId Authentication For
Rails3
1.
myrev
·
2010-09-01 22:00
git
Flash
Ruby
Rails
rack
Ruby1.9.2 On
Rails3
.0.0
Ruby1.9.2 On
Rails3
.0.0 Required: sudo aptitude install bison sudo aptitude install libmysqlclient-dev
myrev
·
2010-08-31 17:00
git
Ruby
Rails
rspec
rack
Ruby1.9.2 On
Rails3
.0.0
阅读更多Ruby1.9.2On
Rails3
.0.0Required:sudoaptitudeinstallbisonsudoaptitudeinstalllibmysqlclient-devsudoaptitudeinstalllibxml2
myrev
·
2010-08-31 17:00
rspec
Rails
Ruby
Rack
Git
基于Ubuntu 10.04下rvm搭建ruby1.9.2和
rails3
开发环境
rvm rvm update --head && rvm reload 2、安装ruby 1.9.2正式版 rvm install 1.9.2 3、建立gemset,存放
rails3
ivice
·
2010-08-31 01:00
java
ubuntu
Ruby
Rails
Netbeans
Kindeditor
rails3
插件 支持上传图片和mongoid
一直比较喜欢Kindeditor,不过上传图片我一直没看他的代码,前二天看到http://dnnta.iteye.com/blog/746577 这个帖子,弱于明白kindeditor 图片上传的json了,就做了个简单的plugin,功能比较简单,主要是方便自己使用。支持active_record 和 mongoid..  
doabit
·
2010-08-27 15:00
JavaScript
java
json
git
Rails
rails3
+jquery-ui+acts_as_list实现可拖曳排序
1.建立新的项目 rails new jsort -J 2.修改Gemfile, gem '
rails3
-generators' #用来安装
doabit
·
2010-08-25 13:00
java
jquery
UI
git
Rails
rails3
的删除问题
Rails 3所做的很大一个改进就是:Unobtrusive JavaScript(非侵入式的JavaScript),以实现对HTML和JavaScript代码的分离。比如: <%= link_to "Destroy", @product, :confirm => "Are you sure?", :method => :del
fansofjava
·
2010-08-25 00:00
JavaScript
linux
IE
Ruby
Rails
上一页
17
18
19
20
21
22
23
24
下一页
按字母分类:
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z
其他