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
| # because i can never remember exactly how and when to use concat | |
| # when building content in helpers | |
| def nested_content | |
| content_tag 'div' do | |
| concat(content_tag 'span', 'span block') | |
| concat(tag 'br') | |
| concat(link_to 'root link', root_path) | |
| concat(tag 'br') | |
| concat(link_to('#') do | |
| concat(content_tag 'h2', 'Head \'em off') |
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
| #!/usr/local/bin/python | |
| """ | |
| To use this script, you must be in the root directory of a Rails project that | |
| is using git. You should also make sure that your directory does not contain any | |
| uncommitted changes. Then run: | |
| $ python rails_switch_branch.py name_of_another_branch | |
| Running the above will do the following: |
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
Show hidden characters
| // Place user-specific overrides in this file, to ensure they're preserved | |
| // when upgrading | |
| { | |
| "folder_exclude_patterns": [".svn", ".git", ".hg", "CVS", "node_modules"] | |
| } |
NewerOlder