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
| %div.box | |
| = yield |
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
| <%# To enable theming: %> | |
| <%= render :partial => "/shared/head", :locals => {:theme => true} %> |
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
| rendering a custom plugin | |
| <% content_for :page_title do %> | |
| <%= @destination.title %> | |
| <% end %> | |
| <% content_for :page_body do %> | |
| <section> | |
| <h1>Choose from our most popular recommended itineraries below</h1> | |
| </section> |
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
| rendering a custom plugin | |
| <% content_for :page_title do %> | |
| <%= @destination.title %> | |
| <% end %> | |
| <% content_for :page_body do %> | |
| <section> | |
| <h1>Choose from our most popular recommended itineraries below</h1> | |
| </section> |
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
| <?xml version="1.0"?> | |
| <!DOCTYPE MODE SYSTEM "xmode.dtd"> | |
| <MODE> | |
| <PROPS> | |
| <PROPERTY NAME="wrap" VALUE="none"/> |
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
| #!/bin/bash | |
| ## BASE ######### | |
| #BASH | |
| alias ..="cd .." | |
| alias j="jobs" | |
| #GIT | |
| alias gs="git status" | |
| function ga { git add $* && gs; } |
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
| # $APP=$1 | |
| # S3_KEY=$2 | |
| # S3_SECRET=$3 | |
| # S3_BUCKET=$4 | |
| # GEMS=$5 | |
| gem install heroku --no-rdoc --no-ri | |
| refinerycms $APP --heroku -g aws-s3,refinerycms-inquiries | |
| # ,$5 | |
| cd $APP |
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
| # shoestring.rb | |
| # Rails template | |
| # from Judd Kussrow of Octopus Inc | |
| # $ rails new Project -Jm http://octopusinc.com/shoestring.rb | |
| ################################### MAINTENANCE ###### | |
| gem 'rails3-generators', :group => 'development' | |
| gem 'nifty-generators', :group => 'development' |
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
| # How to re-use the menu partial for a submenu in Refinery CMS >= 0.9.8.5 | |
| # header menu (main menu) which hides its children. | |
| <%= render :partial => "/shared/menu", | |
| :locals => { | |
| :dom_id => 'menu', | |
| :css => 'menu', | |
| :collection => @menu_pages, | |
| :hide_children => true | |
| } -%> |
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
| # usage: | |
| # curl https://gist.github.com/raw/816518/generator.sh | bash -s {APPNAME} {SSH_USER} {SSH_HOST} | |
| APP=$1 | |
| SSH_USER=$2 | |
| SSH_HOST=$3 | |
| refinerycms -f $APP | |
| cd $APP |