search for: dictname

Displaying 1 result from an estimated 1 matches for "dictname".

2014 May 26
0
Finding a record which I had created
I thought this is an easy one, but: I have created a record, and later would like to retrieve it again. Here is an excerpt of my schema: create_table "dicts", force: true do |t| t.string "dictname" ... end My model ensures that dictname is unique: validates :dictname, presence: true, length: { minimum: 3 }, format: { with: /\A\D/ }, uniqueness: true In my controller, I tried this to fetch a Dict object, when the v...