def field_pattern data
validation = data[:validation]
validation
end
v = field_pattern validation: {type: 'length', length: '50-200'}
v[:type] # "length"
v[:length] # "50-200"
def field_pattern data
$validation = data[:validation]
$validation
end
$validation[:type] # "length"
$validation[:length] # "50-200"
active_link_to 'Каталог', controller: 'pages', action: 'index'