Specified 'mysql2' for database adapter, but the gem is not loaded. Add `gem 'mysql2'` to your Gemfi
2016-01-21
controller 的 convention 是 PagesController,而不是 PageController
2015-11-03
Peter老师讲的太好了 T.T 笔记、声音、课程设置都那么棒 这样的高质量教学在国内太少了..!!
此套rails入门课程质量非常高 我用来复习rails知识 一天之内跟着peter老师做完了
如果Peter老师出付费学习视频我一定也要报名学习!!!支持老师继续出优秀教学视频 ;-)
此套rails入门课程质量非常高 我用来复习rails知识 一天之内跟着peter老师做完了
如果Peter老师出付费学习视频我一定也要报名学习!!!支持老师继续出优秀教学视频 ;-)
2015-10-28
@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,所以始终不能解决这个
我的环境是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,所以始终不能解决这个
2015-09-16
@luodingzi change 'gem 'mysql2'' to 'gem 'mysql2', '~> 0.3.20''.
2015-09-16
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'。
2015-09-15
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
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
2015-09-07