为了账号安全,请及时绑定邮箱和手机立即绑定

Web app---Rails10日谈

happypeter JS工程师
难度中级
时长 1小时10分
学习人数
综合评分10.00
30人评价 查看评价
10.0 内容实用
10.0 简洁易懂
10.0 逻辑清晰

已采纳回答 / NewCanon
安装AdvancedNewFile,使用快捷键Windowsctrl+alt+n: General keymap to create new files.ctrl+shift+alt+n: In addition to creating the folders specified, new folders will also contain an__init__.py file.OS X and LinuxThe super keys for Linux and OS X are the Windows ...
觉得vagrant+ubuntu搭建都搞得够呛,最后在本机mac上轻而易举的搭起来了,vagrant+ubuntu环境陌生又麻烦
@happypeter 你好
我的环境是centos7 ruby rails nodejs 都已经安装好;使用rails s 启动服务器,报下面这个错
Specified 'mysql2' for database adapter, but the gem is not loaded. Add `gem 'mysql2'` to your Gemfile (and ensure its version is at the minimum required by ActiveRecord).
尝试安装mysql,但是centos中已经将mysql改为使用mariadb,所以始终不能解决这个
@luodingzi change 'gem 'mysql2'' to 'gem 'mysql2', '~> 0.3.20''.
Specified 'mysql2' for database adapter, but the gem is not loaded. Add `gem 'mysql2'` to your Gemfile (and ensure its version is at the minimum required by ActiveRecord).出现这个错误,但是Gemfile里面已经有了 gem 'mysql2'。
after adding:

Private
def issue_params
params.require(:issue).permit(:title, :content)
end
I still have the ForbiddenAttributeError

I need to change def create to as shown below in order to make it work

def create
@issue = Issue.new(issue_params)
@issue.save
redirect_to :root
end
http://happypeter.github.io/rails10/
https://vagrantcloud.com/boxes/search
这是个开始。
加个微信一起学习呀,有木有 昆明的同学 kmzhang168

最新回答 / 慕少1329861
多提交几次,刷新下再看!或者复制出去用txt改html试试!只要功能实现,没语法错误就行了!kqqeziykqgfbtmnvptvibcborpqrgymsmkjvfnz
老师 能录制一个 js 的视频么? 太稀罕老师的声音了
课程须知
不需要你以前学过 Ruby,但至少用过 Python、Java、C 等语言中的一种,理解面向对象的基本概念。对 HTML 和 CSS 要有一个入门级的应用水平,如果你是 PHP 或者其他语言的开发老手,通过课程了解 Rails 非常合适。本课程核心观众是从来没做过一个完整 Web App 的新手。
老师告诉你能学到什么?
如何创建更新删除资源。采用 Rails 的接口高效操作数据库。知识点的引出都是穿插在实际开发中的,每一个点都是为了解决一个棘手的问题。你可以看到一个 Web App 的真实的打造过程:虚拟机开发环境的运用测量,编辑器的实操技巧,代码优化的思路。

微信扫码,参与3人拼团

意见反馈 帮助中心 APP下载
官方微信
友情提示:

您好,此课程属于迁移课程,您已购买该课程,无需重复购买,感谢您对慕课网的支持!

本次提问将花费2个积分

你的积分不足,无法发表

为什么扣积分?

本次提问将花费2个积分

继续发表请点击 "确定"

为什么扣积分?

举报

0/150
提交
取消