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
module ApplicationHelper | |
def controller_header_exists? | |
app_views = File.join(Rails.root, "app", "views") | |
controller_header = File.join(app_views, "#{controller_name}/_header.html.erb") | |
File.exists? controller_header | |
end | |
def controller_header_partial | |
"#{controller_name}/header" | |
end |
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 | |
# TODO: http://wiki.debian.org/LSBInitScripts | |
if [ -z "$1" ]; then | |
echo "`basename $0` {start|stop}" | |
exit | |
fi | |
case "$1" in |
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 | |
# TODO: http://wiki.debian.org/LSBInitScripts | |
DESC="Selenium server" | |
RUN_AS=root | |
JAVA_BIN=/usr/bin/java | |
SELENIUM_DIR=/etc/selenium | |
PID_FILE="$SELENIUM_DIR/selenium.pid" |