- 浏览: 178916 次
- 性别:
- 来自: 上海
文章分类
- 全部博客 (174)
- rails (25)
- js (15)
- ruby (30)
- webserver (5)
- mysql (13)
- security (5)
- thinking (5)
- common sense (2)
- linux (18)
- android (26)
- web browser (1)
- config and deploy (1)
- mac (5)
- css (2)
- db (8)
- version manager (1)
- editor (1)
- job (1)
- OOA (1)
- php (1)
- apache (2)
- mongrel (1)
- Mongodb (1)
- facebook (1)
- 架构 (1)
- 高并发 (1)
- twitter (1)
- Erlang (1)
- Scala (1)
- Lua (1)
- ubuntu (3)
- cache (1)
- 面试题 (2)
- android layout (2)
- android控件属性 (2)
- java (5)
- customize view (1)
- advanced (2)
- python (2)
- 机器学习 (5)
最新评论
1、rails gems cd /usr/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record
#这个路径因你的ruby安装路径不同而不同 利用
active_record/
fixtures.rb提供的api创建加载数据到数据库的任务
Rails.root/Rakefile:
ls
aggregations.rb dynamic_finder_match.rb schema_dumper.rb
association_preload.rb dynamic_scope_match.rb schema.rb
associations fixtures.rb
serialization.rb
associations.rb i18n_interpolation_deprecation.rb serializers
attribute_methods.rb locale session_store.rb
autosave_association.rb locking test_case.rb
base.rb migration.rb timestamp.rb
batches.rb named_scope.rb transactions.rb
calculations.rb nested_attributes.rb validations.rb
callbacks.rb observer.rb version.rb
connection_adapters query_cache.rb
dirty.rb reflection.rb
namespace :db do
desc "Load seed fixtures into the database."
task :seed => :environment do
require 'active_record/fixtures'
#
import active_record/
fixtures.rb
Dir.glob(RAILS_ROOT + '/db/fixtures/*.yml').each do |file|
Fixtures
.create_fixtures('db/fixtures', File.basename(file, '.*'))
end
end
end
发表评论
-
7点关于RESTful规范的API接口设计的想法
2016-11-28 14:29 977转:https://segmentfault.co ... -
RESTful API 设计指南
2016-11-28 14:17 446转:http://www.ruanyifeng.com/bl ... -
rails笔记
2016-11-28 13:55 681电子商务系统restful API问卷调查系统考试系统文档 ... -
重构臃肿 ActiveRecord 模型的 7 种方式
2016-11-19 16:29 595转:http://ruby-china.org/topics ... -
Rails系统重构:从单一复杂系统到多个小应用集群
2016-11-17 22:32 474转:http://www.infoq.com/cn/arti ... -
FileUtils 基本文件操作
2016-11-14 21:38 1301FileUtils.cd( dir, *options ) ... -
Custom dialog for data-confirm in Rails
2016-10-11 17:24 842Every Rails developers might ... -
常用ruby gem
2016-10-01 12:34 1163常见gems:Devise用于快 ... -
sphinx-0.99 + ultrasphinx
2016-07-27 20:20 502一、Installing Sphinx 1.Extra ... -
rails3 simple captcha
2015-06-03 16:06 664安装: ruby script/plugin insta ... -
测试ruby代码高亮
2015-05-27 16:33 562# encoding: utf-8 require 'd ... -
ror websites
2014-03-04 11:29 610http://railscasts.com/ ht ... -
mutex
2014-03-02 16:31 684http://ruby-doc.org/core-1.9. ... -
Twitter相关
2012-05-22 20:54 698Twitter没有计划放弃ruby on rails,而且早就 ... -
安装RMagick
2012-05-05 02:57 1138download from http://rubygems.o ... -
rails mechanism
2012-03-09 18:13 770PHP/Python/Ruby的运行机制有一个本质区别:P ... -
ruby类库
2012-03-09 10:54 15591.require 'cgi' def self.esc ... -
rails开源项目
2012-01-13 11:48 2334Ruby on Rails 是一个 Web 应用程序框架, ... -
code随记
2012-01-09 11:49 3867添加svn到Netbeans: Netbeans => ... -
识别验证码
2011-11-18 17:20 1130用imagemagick和tesseract-ocr破解简单 ...
相关推荐
How to work with Ruby libraries, gems, and documentation How to work with files and databases How to write and deploy Ruby applications What are the various Ruby web frameworks and how to use them How...
* How to install and use Ruby and Rails * Object-oriented programming with Ruby * Rails fundamentals and how to create basic online applications * How to work with HTML controls, use models in Rails ...
学习Ruby on Rails 4.0的逐步指南。 它包括针对Ruby 2.0.0的基本教程,是为至少了解另一种编程语言并熟悉HTML的程序员编写的。
See exactly what makes Ruby and Rails code slow, and how to fix it. Alex Dymo will guide you through perils of memory and CPU optimization, profiling, measuring, performance testing, garbage ...
gems使用手册ruby on rails,真的很好很好很好用啊
opal-rails, 将 ruby 带到Opal的Rails Rails 绑定 蛋白石 Rails 用于蛋白石 ruby 引擎的 Rails 绑定。 ( 变更日志 )安装在你的Gemfile 中gem 'opal-rails'或者当你构建新的Rails 应用程序时:rails
Drawing on their unsurpassed experience and track record, they address the real challenges development teams face, showing how to use Rails 3 to maximize your productivity. Using numerous detailed ...
Examples use Concerns, Russian Doll caching, and Turbolinks, and the book focuses throughout on the right way to use Rails. Additionally, this edition now works on Ruby 2.0, a new release of Ruby ...
标题提到的"ruby-oracle相关的数据库操作的gems包"是指一组用于连接和交互Oracle数据库的Ruby库。描述中指出,这些包主要基于oci8技术,oci8是Oracle公司提供的一个C接口,允许其他编程语言,如Ruby,与Oracle数据库...
This book covers Postgres 9.5, Rails 5, and Ruby 2.3. You should have some experience with basic Rails concepts and a cursory understanding of JavaScript, CSS, and SQL, but by no means need to be an ...
《Ruby on Rails Tutorial》中文版(原书第2版,涵盖 Rails 4) Ruby 是一门很美的计算机语言,其设计原则就是“让编程人员快乐”。David Heinemeier Hansson 就是看重了这一点,才在开发 Rails 框架时选择了 Ruby...
### NetBeans Ruby and Rails IDE with JRuby 2009 #### 一、安装NetBeans IDE及Ruby支持 - **下载IDE**:首先需要下载最新版本的NetBeans IDE,该IDE集成了对Ruby的支持。 - **安装Java SDK**:由于NetBeans是...
RUBY的经典之作,对其在RAILS下开发写得很详细
在Rails 2.2.3时代,社区已经发展出很多插件和 gems(Ruby的扩展库),如Devise用于身份验证,CanCanCan进行授权管理,Paperclip或Carrierwave处理文件上传等。虽然这些可能需要适配老版本,但它们能极大地增强你的...