已采納回答 / 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 你好
我的環(huán)境是centos7 ruby rails nodejs 都已經(jīng)安裝好;使用rails s 啟動(dòng)服務(wù)器,報(bào)下面這個(gè)錯(cuò)
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中已經(jīng)將mysql改為使用mariadb,所以始終不能解決這個(gè)
我的環(huán)境是centos7 ruby rails nodejs 都已經(jīng)安裝好;使用rails s 啟動(dòng)服務(wù)器,報(bào)下面這個(gè)錯(cuò)
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中已經(jīng)將mysql改為使用mariadb,所以始終不能解決這個(gè)
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).出現(xiàn)這個(gè)錯(cuò)誤,但是Gemfile里面已經(jīng)有了 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