亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定

Web app---Rails10日談

happypeter JS工程師
難度中級
時長 1小時10分
學習人數
綜合評分10.00
30人評價 查看評價
10.0 內容實用
10.0 簡潔易懂
10.0 邏輯清晰

已采納回答 / 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 ...
覺得vagrant+ubuntu搭建都搞得夠嗆,最后在本機mac上輕而易舉的搭起來了,vagrant+ubuntu環境陌生又麻煩

最贊回答 / 逗逗鵝
Gemfile 增加 gem 'mysql2' '~>0.3.18' ?可以解決
@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,所以始終不能解決這個
@luodingzi change 'gem 'mysql2'' to 'gem 'mysql2', '~> 0.3.20''.
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'。
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
http://happypeter.github.io/rails10/
https://vagrantcloud.com/boxes/search
這是個開始。
加個微信一起學習呀,有木有 昆明的同學 kmzhang168
老師 能錄制一個 js 的視頻么? 太稀罕老師的聲音了
課程須知
不需要你以前學過 Ruby,但至少用過 Python、Java、C 等語言中的一種,理解面向對象的基本概念。對 HTML 和 CSS 要有一個入門級的應用水平,如果你是 PHP 或者其他語言的開發老手,通過課程了解 Rails 非常合適。本課程核心觀眾是從來沒做過一個完整 Web App 的新手。
老師告訴你能學到什么?
如何創建更新刪除資源。采用 Rails 的接口高效操作數據庫。知識點的引出都是穿插在實際開發中的,每一個點都是為了解決一個棘手的問題。你可以看到一個 Web App 的真實的打造過程:虛擬機開發環境的運用測量,編輯器的實操技巧,代碼優化的思路。

微信掃碼,參與3人拼團

微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號

友情提示:

您好,此課程屬于遷移課程,您已購買該課程,無需重復購買,感謝您對慕課網的支持!

本次提問將花費2個積分

你的積分不足,無法發表

為什么扣積分?

本次提問將花費2個積分

繼續發表請點擊 "確定"

為什么扣積分?

舉報

0/150
提交
取消