happypeter / rails10 Goto Github PK
View Code? Open in Web Editor NEWrails 十日谈
Home Page: http://c.haoduoshipin.com/rails10/
rails 十日谈
Home Page: http://c.haoduoshipin.com/rails10/
一个不知道 POST 和 GET 的人直接上 form_tag,从没写过一句 sql 的人直接就 migration。知识层叠太高了,新手肯定晕。
她:
ruby on rails 的网站怎么部署? 本机上调通了,如何找到便宜的服务器并做域名指向?haoqicat 是放在哪里的?
http://happypeter.github.io/rails10/12_beauty.html 中,关于patch path的代码有问题:
patch 'issues' => 'issues#update'
应该是:patch 'issues/:id' => 'issues#update'
视频中的代码是正确地
turbo links 等一些高级功能放到最后,作为介绍性内容。
https://laracasts.com/series/laravel-5-from-scratch/episodes/10
中专门讲了 resources
我的视频里我打算这样,就是一心想要把这个东西给做成。过程越简单越好,但是代码也不能太傻帽了。也就是说如果,有一个东西写了三四个了,几乎就凑成一个 resources 了,那就把这个概念搬出来。
注意,搬出新概念的目的要基于实用:
看来,我这里的思路就比较清晰了:
http://happypeter.github.io/rails10/12_beauty.html
issues controller中关于update方法的代码没有给出,建议加上
def update
i = Issue.find(params[:id])
i.update_attributes(issue_params)
redirect_to :root
end
Shall I write rails10 as a whole book, or shall I write it as step stones for railstutorial.
安装 Ubuntu
editor:
db:
use vps or heroku:
使用 vagrant 的 provision 脚本还是不那么简单的,想要一键搞定一切,不那么容易:
还是给出一个手动安装的命令列表吧,可以放在 rails10 源码树里,也可以放在视频文字稿中。
还是延续 html7 的风格,以实现功能为主线。
具体的点的讲解可以放到 “rails 巧克力” 之中。
html git 这些东西要 show, don't tell,不然这本书就得改成 rails100 了
现在我一边开发 offline-happycasts 一边就安排那些内容可以在 rails10 中先不讲
中级课程叫 《 Rails 100 迈》,高级叫 《 Rails 千千阙歌 》
offline 项目中不写高级内容的代码。只有初级和中级的内容。
中级内容:
find_by(title: "Title") is now preferred over find_by_title("Title") in Rails4
不讲部署,东西就不能真正实用,不 teasing
讲部署,那么事情就太多了,
rake assets:precompile
还有前面我用 vagrant 默认解决的那些 git/rails/ruby 的安装问题,这里不是还要都跑一遍?
强调 Rails 就是适合初学者的,
Rails 中充满了摩登开发者的工作流:
用写静态页面的方法来使用 font-awesome 并不太难 293f3c7350fa8b
这是展示 gem 的优势的一个例子
告诉大家 production mode,asset precompile,这些事情
域名重定向,apache 设置...
他们的课程定位较之 rails tutorial 更为简单,面向真正的 Beginner.
我比较喜欢的就是他们主页上极为清晰的市场定位。其实只有这个清楚了,课程才能真正有一个好的北极星。
我的 rails10 也要有一个清晰的定位。
适合观众:
https://www.udacity.com/course/cs253
update:这些内容不太适合放到本课中了:http, sql,... 未来我可以另开一门 “web 开发基础”
sudo apt-get install -y git-core curl zlib1g-dev build-essential \
libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 \
libxml2-dev libxslt1-dev libcurl4-openssl-dev software-properties-common
文档链接给我一下
Leon 20:19:49
http://happypeter.github.io/rails10/02_getrails.html
happypeter 20:20:24
我自己跑一般试试,稍等
Leon 20:20:33
好的,麻烦老师了
happypeter 20:21:29
把你的报错信息贴一下吧
Leon 20:21:44
恩,我跑一下,稍等
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.