http://guides.rubyonrails.org/migrations.html
- add_column
- add_index
- change_column
- change_table
- create_table
- drop_table
class Api::RegistrationsController < Api::BaseController | |
respond_to :json | |
def create | |
user = User.new(params[:user]) | |
if user.save | |
render :json=> user.as_json(:auth_token=>user.authentication_token, :email=>user.email), :status=>201 | |
return | |
else |
class Api::RegistrationsController < Api::BaseController | |
respond_to :json | |
def create | |
user = User.new(params[:user]) | |
if user.save | |
render :json=> user.as_json(:auth_token=>user.authentication_token, :email=>user.email), :status=>201 | |
return | |
else |
http://guides.rubyonrails.org/migrations.html
# source : http://code.google.com/p/natvpn/source/browse/trunk/stun_server_list | |
# A list of available STUN server. | |
stun.l.google.com:19302 | |
stun1.l.google.com:19302 | |
stun2.l.google.com:19302 | |
stun3.l.google.com:19302 | |
stun4.l.google.com:19302 | |
stun01.sipphone.com | |
stun.ekiga.net |
class Api::RegistrationsController < Api::BaseController | |
respond_to :json | |
def create | |
user = User.new(params[:user]) | |
if user.save | |
render json: user.as_json(auth_token: user.authentication_token, email: user.email), status: :created | |
return | |
else |
// ------------------------------------------------------------------------- | |
// Filename: astar.h | |
// Version: 3 | |
// Purpose: Provide template for a* algorithm | |
// (c) T.Frogley 1999-2021 | |
// Stable and used in many projects 2003-2021+ | |
// Updated: 2021 to better support behaviour controls, & unordered_set | |
// ------------------------------------------------------------------------- | |
#ifndef ASTAR_H |
# Add the following lines at the end of config/deploy.rb | |
Dir["config/deploy/extras/*.rb"].each { |file| load file } | |
set :notify_emails, ["mail@example.com"] | |
after "deploy", "deploy:notify" |
# | |
# First install Java 7 from Oracle | |
# | |
apt-get update | |
apt-get install python-software-properties | |
add-apt-repository ppa:webupd8team/java | |
apt-get update | |
apt-get install oracle-java7-installer |