- 浏览: 174078 次
- 性别:
- 来自: 上海
文章分类
- 全部博客 (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 947转:https://segmentfault.co ... -
RESTful API 设计指南
2016-11-28 14:17 416转:http://www.ruanyifeng.com/bl ... -
rails笔记
2016-11-28 13:55 654电子商务系统restful API问卷调查系统考试系统文档 ... -
重构臃肿 ActiveRecord 模型的 7 种方式
2016-11-19 16:29 561转:http://ruby-china.org/topics ... -
Rails系统重构:从单一复杂系统到多个小应用集群
2016-11-17 22:32 443转:http://www.infoq.com/cn/arti ... -
FileUtils 基本文件操作
2016-11-14 21:38 1274FileUtils.cd( dir, *options ) ... -
Custom dialog for data-confirm in Rails
2016-10-11 17:24 821Every Rails developers might ... -
常用ruby gem
2016-10-01 12:34 1132常见gems:Devise用于快 ... -
sphinx-0.99 + ultrasphinx
2016-07-27 20:20 479一、Installing Sphinx 1.Extra ... -
rails3 simple captcha
2015-06-03 16:06 642安装: ruby script/plugin insta ... -
测试ruby代码高亮
2015-05-27 16:33 540# encoding: utf-8 require 'd ... -
ror websites
2014-03-04 11:29 538http://railscasts.com/ ht ... -
mutex
2014-03-02 16:31 665http://ruby-doc.org/core-1.9. ... -
Twitter相关
2012-05-22 20:54 668Twitter没有计划放弃ruby on rails,而且早就 ... -
安装RMagick
2012-05-05 02:57 1112download from http://rubygems.o ... -
rails mechanism
2012-03-09 18:13 737PHP/Python/Ruby的运行机制有一个本质区别:P ... -
ruby类库
2012-03-09 10:54 15081.require 'cgi' def self.esc ... -
rails开源项目
2012-01-13 11:48 2305Ruby on Rails 是一个 Web 应用程序框架, ... -
code随记
2012-01-09 11:49 3837添加svn到Netbeans: Netbeans => ... -
识别验证码
2011-11-18 17:20 1108用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的程序员编写的。
How to RESTful rails
The Rails™ 3 Way is a ... 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.
This short early adopter book details both how you’ll upgrade existing web and other applications from Rails 4.2 to 5 and how to create new applications in Rails 5. The headline features, Rails API ...
This concise teaches you how to use the power of Docker and Kubernetes to deploy your Rails applications easily and efficiently. Docker and Kubernetes are increasing in popularity every day, but what ...
This short early adopter book details both how you'll upgrade existing web and other applications from Rails 4.2 to 5 and how to create new applications in Rails 5. The headline features, Rails API ...
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 ...
RailsSpace teaches you Ruby on Rails by developing a real-world application: Rails...designed to show how to use Rails to make a web application suitable for deployment into a production environment.
gems使用手册ruby on rails,真的很好很好很好用啊
Ubuntu系统ruby on rails安装 Ubuntu系统ruby on rails安装 Ubuntu系统ruby on rails安装 Ubuntu系统ruby on rails安装 Ubuntu系统ruby on rails安装 Ubuntu系统ruby on rails安装 Ubuntu系统ruby on rails安装 ...
Ruby on Rails Guides v2 - Ruby on Rails 4.2.5
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 on Rails Tutorial》中文版(原书第2版,涵盖 Rails 4) Ruby 是一门很美的计算机语言,其设计原则就是“让编程人员快乐”。David Heinemeier Hansson 就是看重了这一点,才在开发 Rails 框架时选择了 Ruby...
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 ...