Last active
August 29, 2015 14:10
-
-
Save PabloVallejo/e1675cb4db8235f0c5e6 to your computer and use it in GitHub Desktop.
Helpful uncategorized tips.
This file contains 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
# Autoload `lib` directory. | |
# Inside config/application.rb | |
config.autoload_paths << Rails.root.join('lib') |
This file contains 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
# Skip jbuilder files when generating scaffolds. | |
config.generators do |g| | |
g.assets false | |
g.helper false | |
g.test_framework nil | |
g.jbuilder false | |
end | |
# Or specifying one generator only. | |
config.generators.jbuilder = false |
This file contains 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
# Render to string. | |
@m = render_to_string :template => "template", :locals => {:sender => sender} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment