我正在研究一個基於核心實體生成視圖模型的T4模板。 比如我有核心新聞類,我想這個模板來生成視圖模型,如這些 public class News
{
public property int Id {get;set;}
public property string Title {get;set;}
public property string Content {get;
不知道是什麼問題,在這裏,但它肯定與運行rails g scaffold [model],因爲我做了一些不同的新的測試項目,今天有這個問題的唯一的人是生成的代碼做我使用過腳手架的。 這裏有一個picture of my index page。請注意,在左下角的鏈接輸出爲(New Logfile (/logfiles/new和<td>「名」是在頁面的中間 - 兼論形式,所有的文字輸入的鏡像 - 也就
如何定製腳手架發電機#was following this link 類IdeasController <的ApplicationController before_action:set_idea,只有:[:顯示,編輯,:更新:摧毀] # GET /ideas
# GET /ideas.json
def index
@ideas = Idea.all
end