The Crystal programming language | http://crystal-lang.org | Fund Crystal's development: http://is.gd/X7PRtI | Docs: http://crystal-lang.org/docs/ | API: http://crystal-lang.org/api/
module DBConfig
USERNAME = "samplename"
PASSWORD = "sample123password"
ADDRESS = "127.0.0.1"
PORT = "3306"
DBNAME = "my-db"
CONNECTION = "mysql://#{USERNAME}:#{PASSWORD}@#{ADDRESS}:#{PORT}/#{DBNAME}"
end
Gives me the error:No address found for sample123password@127.0.0.1:3310 over TCP (Socket::Error)
brew tap
and brew install
and I get the dyld: Library not loaded: /usr/local/opt/libevent/lib/libevent-2.0.5.dylib
error when running
<form action="/users/signup" method="post">
<div class="form-group">
<label>Username</label>
<input type="text" class="form-control" name="username">
</div>
<div class="form-group">
<label>Email</label>
<input type="text" class="form-control" name="email">
</div>
<div class="form-group">
<label>Password</label>
<input type="password" class="form-control" name="password">
</div>
<div class="form-group">
<label>Confirm Password</label>
<input type="password" class="form-control" name="confirm">
</div>
<button type="submit" class="btn btn-warning btn-lg">Signup</button>
</form>
nilable
)