目標為年底前轉職Rails工程師,以參加鐵人賽來證明自己決心,將最終會面對的面試題目提早準備,俗話說能敘述給別人聽得懂的才是真的了解!
What is the difference between a proc and a lambda?proc與lamba的差異是什麼? 昨天我們提到了R...
What is self and when do we use “self” in Ruby?在Ruby中的self是什麼?我們什麼時候會使用self?...
經過好幾天Ruby面試題的洗禮,我們就正式開始看看Rails相關的面試題,今天先來個牛刀小試 Define a route for a create acti...
What is MVC?什麼是MVC? MVC是Model-view-controller的縮寫,是一種軟體設計模式(software design p...
What is Active Record?Active Record是什麼? Active Record是一種設計模式,MVC中的Model就是根據Ac...
昨天談到了Active Record的基本介紹,知道了Active Record是一種設計模式,應用到了ORM技術,將程式語言中的物件對應到了資料庫中的資料表,...
繼續來探討Active Record相關的面試題,Active Record除了昨天提到的migration外,還有另外一個功能是有callback。 Wha...
When would you use a before_save vs. after_save callback?before_save 與 after_sa...
What is the difference between delete and destroy?delete與destroy差異在哪? 之前在談到Ac...
What is the difference between find, find_by, and where in ActiveRecord?ActiveR...