Skip to content

Instantly share code, notes, and snippets.

@emilioeduardob
Created September 25, 2017 13:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save emilioeduardob/a343ca968a7dab7671f4d68a384cd158 to your computer and use it in GitHub Desktop.
Save emilioeduardob/a343ca968a7dab7671f4d68a384cd158 to your computer and use it in GitHub Desktop.
ActiveAdmin Snippets for VScode
{
"ActiveAdmin Form": {
"prefix": "admin_form",
"body": [
"form do |f|",
"\tf.inputs \"Details\" do",
"\t\tf.input :$1",
"\tend",
"\tf.actions",
"end"
]
},
"ActiveAdmin Show": {
"prefix": "admin_show",
"body": [
"show do",
"\tattributes_table do",
"\t\trow :$1",
"\tend",
"end"
]
},
"ActiveAdmin": {
"prefix": "admin",
"body": [
"ActiveAdmin.register $1 do",
"\tpermit_params :id",
"end"
]
},
"ActiveAdmin Index": {
"prefix": "admin_index",
"body": [
"index do",
"\tselectable_column",
"\tcolumn :$1",
"\tcolumn :created_at",
"\tactions",
"end"
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment