Open source discussion website.
开源的论坛/社区网站系统,基于 Ruby China 发展而来。
Released under the MIT license:
This project forked from rubychinatranslation/rails-guides-china
A Ruby on Rails Traslation Guide
Home Page: http://guides.ruby-china.org
Open source discussion website.
开源的论坛/社区网站系统,基于 Ruby China 发展而来。
Released under the MIT license:
在
接下来:编辑 post.rb 文件来创建来创建另一个成员,并且告诉Rails(通过 the accepts_nested_attributes_for 宏)你打算通过posts form来编辑tags。
这句话之后的代码,少了 tags_attributes
class Post < ActiveRecord::Base
attr_accessible :content, :name, :title, :tags_attributes
导致 Tag 赋值错误
比如
Rails 不是 rails
Ruby China 不是 rubychina 或 RubyChina 也不是 Ruby china
中文与英文之间的空格
不好
与Rails的第一次接触
MVC 的基本原则和RESTful设计(理念)
好
与 Rails 的第一次接触
MVC 的基本原则和 RESTful 设计(理念)
$ curl -v http://guides.ruby-china.org/kindle/ruby_on_rails_guides_cf0cb03.CN.mobi
* About to connect() to guides.ruby-china.org port 80 (#0)
* Trying 58.215.184.15...
* connected
* Connected to guides.ruby-china.org (58.215.184.15) port 80 (#0)
> GET /kindle/ruby_on_rails_guides_cf0cb03.CN.mobi HTTP/1.1
> User-Agent: curl/7.24.0 (x86_64-apple-darwin12.0) libcurl/7.24.0 OpenSSL/0.9.8r zlib/1.2.5
> Host: guides.ruby-china.org
> Accept: */*
>
< HTTP/1.1 404 Not Found
< Server: nginx/1.2.1
< Date: Fri, 23 Nov 2012 02:22:41 GMT
< Content-Type: text/html
< Content-Length: 168
< Connection: keep-alive
<
<html>
<head><title>404 Not Found</title></head>
<body bgcolor="white">
<center><h1>404 Not Found</h1></center>
<hr><center>nginx/1.2.1</center>
</body>
</html>
* Connection #0 to host guides.ruby-china.org left intact
* Closing connection #0
目录与英文版不符。。。
RT.
html标签全部显示出来了。我看了console没有任何文件载入失败或者js执行错误。
$ rake generate_guides_CN
/home/ruby/.rvm/rubies/ruby-1.9.3-p194/bin/ruby rails_guides.rb
Generating association_basics.textile as association_basics.html
/data/www/rails-guides/rails_guides/body_converter.rb:28:in `sub!': invalid byte sequence in US-ASCII (ArgumentError)
from /data/www/rails-guides/rails_guides/body_converter.rb:28:in `set_header_section'
from /data/www/rails-guides/rails_guides/body_converter.rb:21:in `convert_body'
from /data/www/rails-guides/rails_guides/generator.rb:165:in `process_body'
from /data/www/rails-guides/rails_guides/generator.rb:156:in `block in generate_guide'
from /data/www/rails-guides/rails_guides/generator.rb:147:in `open'
from /data/www/rails-guides/rails_guides/generator.rb:147:in `generate_guide'
from /data/www/rails-guides/rails_guides/generator.rb:96:in `block in generate_guides'
from /data/www/rails-guides/rails_guides/generator.rb:94:in `each'
from /data/www/rails-guides/rails_guides/generator.rb:94:in `generate_guides'
from /data/www/rails-guides/rails_guides/generator.rb:47:in `generate'
from rails_guides.rb:53:in `<main>'
rake aborted!
Command failed with status (1): [/home/ruby/.rvm/rubies/ruby-1.9.3-p194/bin...]
Tasks: TOP => generate_guides_CN
RT,就是在https://github.com/ruby-china/rails-guides这个页面的顶部,那句description:A Ruby on Rails Traslation Guide
,里面的traslation
应为translation
。
点击 主页里面的 “Active Record 数据表关联 ” 会404 ~
期待一下4.1的翻译文档~~
今天我在翻译active record querying一文中,发现有如下一句"Calculations":#calculations
但是找不到定义#calculations
的地方,导致执行rake generate_guides_CN
时出错了:*** BROKEN LINK: #calculation, perhaps you meant #last_1. *** BROKEN LINK: #calculation, perhaps you meant #last_1. *** BROKEN LINK: #calculation, perhaps you meant #last_1. *** BROKEN LINK: #calculation, perhaps you meant #last_1. *** BROKEN LINK: #calculation, perhaps you meant #last_1.
另外,我发现:
https://github.com/zlx/rails-guides/blob/master/source/CN/active_record_querying.textile#calculations
是存在的,但是源代码中没有定义:
https://raw.github.com/zlx/rails-guides/78a328eb4cf33f2708941d0072c1dca6fa749a13/source/CN/active_record_querying.textile
同样的问题还有
**\* BROKEN LINK: #14-1, perhaps you meant #1-1.
**\* BROKEN LINK: #14-2, perhaps you meant #1-2.
**\* BROKEN LINK: #14-3, perhaps you meant #1-3.
**\* BROKEN LINK: #14-4, perhaps you meant #8-4.
**\* BROKEN LINK: #pure-string-conditions, perhaps you meant #array-range_conditions.
**\* BROKEN LINK: #joining-tables, perhaps you meant #first_1.
http://guides.ruby-china.org/configuring.html
------------ 我的问题, 修正会和 asset_pipline 翻译一同提交
D:/DevTools/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/actionpack-3.2.13/
lib/action_view/template/handlers/erb.rb:120:in `valid_encoding': Your template
was not saved as valid GBK. Please either specify GBK as the encoding for your t
emplate in your text editor, or mark the template with its encoding by inserting
the following as the first line of the template: (ActionView::Template::Error)
基本上大多数文件都是utf-8,很多都加了# encoding: utf-8,还是没用
rails版本是3.2.13,ruby是1.9.7,os是win7 64位
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.