🤓
https://gist.github.com/razvan-pavel
-
EPAM Systems
- Romania
-
04:42
(UTC +03:00)
Pinned Loading
-
Generate activeadmin templates rake ...
Generate activeadmin templates rake task for your rails application 1# Generate activeadmin templates rake task for your rails application2# IMPORTANT!!! It will overwrite your current file and should be used ONLY for newly generated files(or create a backup before running this script)3# Because this will try create a fresh file every time, you can use this rake instead of "rails g active_admin:resource YourClass"45# rake generate_admin_permit_params[User] -
If you are truly desperate to see wh...
If you are truly desperate to see where your rails application stops and you have no logs to see what's going on 1# If you are truly desperate to see where your rails application stops and you have no logs to see what's going on2# ALWAYS use this script with your "git status" empty, because you will have to do "git checkout ." after you found the bug3# It will add a line of print/debug/p with the name of the method for every method in your application so you can trace the place where your rails thread/server is stucked45Dir.glob("app/*/**") do |file|
-
If expression checker
If expression checker 1# This will help you identify if two expressions are equivalent2# usefull when you change an if condition and want to check if it works like before34# Example of use:5# $> expr_checker "(ana && are) || (ana && mere)", "ana && (are || mere)" -
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.




