Skip to content

Instantly share code, notes, and snippets.

View Rijen's full-sized avatar

Матвей Бельский Rijen

View GitHub Profile
anonymous
anonymous / rails console
Created August 27, 2016 14:27
Как так?
irb(main):001:0> require './app/example_user.rb'
=> true
irb(main):003:0> example = User.new
=> #<User:0x0055f1cf956f20 @name=nil, @email=nil>
irb(main):004:0> example.name='Rijen'
=> "Rijen"
irb(main):005:0> example
=> #<User:0x0055f1cf956f20 @name=nil, @email=nil>
irb(main):006:0> example.name
<?php
$str_conn="firebird:host=localhost;dbname=/var/lib/firebird/2.5/data/employee.fdb;charset=UTF8";
$dbh = new PDO($str_conn, "sysdba", "masterkey");
?>