已采纳回答 / 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 ...
2015-10-15
@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