Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
RailsAdmin crashes when having a custom controller-scaffold placed in lib #1550
I'm having a template-file for a custom controller-scaffold in my lib-dir, which rails-admin does not like. It throws the followng syntax-error. I don't know whats going on behind the scences in rails-admin, but it seems that rails-admin scans this file ?! If I temporary rename it to contoller.rbX ... then everything is fine! Is there a way to exclude this file or even better the whole directory ? Thanks !
SyntaxError - C:/Sites/projects/myproject/lib/templates/rails/scaffold_controller/controller.rb:2: syntax error, unexpected
This comment has been minimized.
This comment has been minimized.Show comment Hide comment
OK, I did not find any config-option for this problem, so I came up with my own simple fix. If you're experciencing some trouble like this, then add to your rails-admin-initializer: