一.创建一个新的应用程序 在控制台输入 > rails new demo create create README.rdoc create Rakefile create config.ru create .gitignore create Gemfile create app .......... ...
分类:
系统相关 时间:
2017-06-27 21:16:21
阅读次数:
255
gitlab安装:https://www.gitlab.com.cn/downloads/#centos7gitlab汉化包下载:https://gitlab.com/xhang/gitlab.git把下载下来的内容替换gitlab-rails目录中的内容,然后启动即可。/opt/gitlab/embedded/service/gitlab-rails
分类:
其他好文 时间:
2017-06-26 22:30:30
阅读次数:
154
config/environments/development.rb config.action_cable.url = 'ws://10.129.56.223:28080' // 浏览器访问的websoket 服务地址 ActionCable.server.config.disable_reque ...
分类:
其他好文 时间:
2017-06-22 14:20:25
阅读次数:
124
在平日的开发当中我们一般只返回html,json 等等,但是偶尔情况下也会使用到其他文件的返回,比如 pdf ,csv 文件 今天在开发中使用的是将大量的文字返回给用户。 ## 知识点 `Tempfile` `send_file` `gem rubyzip` ### Tempfile Tempfil ...
分类:
其他好文 时间:
2017-06-20 01:01:25
阅读次数:
299
首先搞清楚这句话,在 Ruby 中,方法分为 public、private 和 protected 三种,仅仅有 public 方法才干作为控制器的动作。 我的出错的代码例如以下: controlle class ArticlesController < ApplicationController ...
分类:
其他好文 时间:
2017-06-19 20:52:16
阅读次数:
118
移动互联网的爆发以及响应式页面的尴尬症,开发web和mobile项目成为了标配,当然实际情况下,会有更多的项目。 多项目开发对于前端来说是个很大的挑战? 重复,重复的前端架构,重复的前端依赖,重复的工具函数等? 局限,不同后台有不同的规则,“因地制宜”真难受,刚伺候好rails又突然来个php? 最 ...
分类:
其他好文 时间:
2017-06-18 00:09:18
阅读次数:
265
Ruby on Rails on Mac http://morizyun.github.io/blog/marvericks-rails-setup-ruby-rvm-msyql/ for general : useful : http://qiita.com/keneo/items/0a58b18 ...
分类:
系统相关 时间:
2017-06-17 13:05:51
阅读次数:
186
说到Web Framework,Ruby的世界Rails一统江湖,而Python则是一个百花齐放的世界。各种micro-framework、framework不可胜数. 尽管还有一大脚本语言PHP也有不少框架,但远没有Python这么夸张,也正是由于Python Web Framework(Pyth ...
分类:
编程语言 时间:
2017-06-16 12:07:17
阅读次数:
187
github GitHub是一个通过Git进行版本控制的软件源代码托管服务,由GitHub公司(曾称Logical Awesome)的开发者Chris Wanstrath、PJ Hyett和Tom Preston-Werner使用Ruby on Rails编写而成。 — 来自 维基百科 我们打开网站 ...
分类:
其他好文 时间:
2017-06-16 11:27:31
阅读次数:
215
一、出错类型 Exception ActionController::UnknownController, ActiveRecord::RecordNotFound ActionController::RoutingError AbstractController::ActionNotFound 二 ...
分类:
其他好文 时间:
2017-06-13 17:28:15
阅读次数:
233