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
class ApplicationController < ActionController::Base | |
include ApplicationHelper | |
before_action :current_user_session, :current_user | |
rescue_from 'StandardError', 'Exception', 'ActiveRecord::RecordInvalid', | |
'ActionController::RoutingError', with: :exception_handler | |
private |
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
#!/usr/bin/env bash | |
if [ "$UID" -ne 0 ] | |
then echo "Please run this script as root user" | |
exit | |
fi | |
apt-get -y update | |
apt-get -y upgrade | |
apt-get -y install build-essential zlib1g-dev libssl-dev libreadline6-dev libyaml-dev git sqlite3 libsqlite3-dev |