已采納回答 / 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