Created
September 25, 2017 13:32
-
-
Save emilioeduardob/a343ca968a7dab7671f4d68a384cd158 to your computer and use it in GitHub Desktop.
ActiveAdmin Snippets for VScode
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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