I want to deal with some data rows with same
key_id. I want them to get select by using an id in URL, so I will have
/field_data/index/12 and 12 here means the
I can manually do it in the controller by hardcoding the
def index @key_id = 12 @field_data = FieldDatum.select('field_content').where("key_id = ?", @key_id) end
and my URL is very general:
So how to make it be able to get the id in URL?