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