Created
August 31, 2014 10:37
-
-
Save danielfone/b8e291d32bf95d8c4ab9 to your computer and use it in GitHub Desktop.
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
# CAVEAT: I have not run this code | |
require 'rails/generators/erb/scaffold/scaffold_generator' | |
module Erb | |
module Generators | |
class ScaffoldGenerator < Base | |
protected | |
def available_views | |
%w(index edit show new _form) # add new views here | |
end | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment