Skip to content

Instantly share code, notes, and snippets.

<%= form_for(resource, :as => resource_name, :url => registration_path(resource_name)) do |f| %>
<%= devise_error_messages! %>
<%= f.email_field :email, :autofocus => true, :placeholder => "Email" %></br>
<%= f.password_field :password, :placeholder => "Password" %></br>
<%= f.password_field :password_confirmation, :placeholder => "Password again, please." %></br>
<%= fields_for :domains do |domain_form| %>
<%= domain_form.text_field :domain_name, :placeholder => "Domain Name" %>
1.9.3-p0 :130 > @twilio_client = Twilio::REST::Client.new TWILIO_SID, TWILIO_TOKEN
@twilio_client.account.incoming_phone_numbers.list(:phone_number => '+13142000751')
=> [<Twilio::REST::IncomingPhoneNumber @uri=/2010-04-01/Accounts/AC29c2e98ef9cabb31a9098a6f1f1548a2/IncomingPhoneNumbers/PNfdc3ac4e9e5b74b03e586ca6d38689cb>]
@phone = @account.incoming_phone_numbers.list(:phone_number => '+13142000751')
=> [<Twilio::REST::IncomingPhoneNumber @uri=/2010-04-01/Accounts/AC29c2e98ef9cabb31a9098a6f1f1548a2/IncomingPhoneNumbers/PNfdc3ac4e9e5b74b03e586ca6d38689cb>]
@phone
=> [<Twilio::REST::IncomingPhoneNumber @uri=/2010-04-01/Accounts/AC29c2e98ef9cabb31a9098a6f1f1548a2/IncomingPhoneNumbers/PNfdc3ac4e9e5b74b03e586ca6d38689cb>]
@twilio_client = Twilio::REST::Client.new TWILIO_SID, TWILIO_TOKEN
=> <Twilio::REST::Client @account_sid=AC29c2e98ef9cabb31a9098a6f1f1548a2>
1.9.3-p0 :057 > @remote_number = @twilio_client.account.incoming_phone_numbers.list({:phone_number => @number})
=> [<Twilio::REST::IncomingPhoneNumber @uri=/2010-04-01/Accounts/AC29c2e98ef9cabb31a9098a6f1f1548a2/IncomingPhoneNumbers/PNfdc3ac4e9e5b74b03e586ca6d38689cb>]
1.9.3-p0 :058 >
class User < ActiveRecord::Base
# Include default devise modules. Others available are:
# :token_authenticatable, :confirmable,
# :lockable, :timeoutable and :omniauthable
before_create :initial_charge_customer
after_create :create_profile, :buy_number
has_one :profile
has_many :conversations
FATAL: Chef::Exceptions::ResourceNotFound: resource link[/opt/logstash/server/lib/logstash.jar] is configured to notify resource service[logstash_server] with action restart, but service[logstash_server] cannot be found in the resource collection. link[/opt/logstash/server/lib/logstash.jar] is defined in /var/cache/chef/cookbooks/logstash/recipes/server.rb:71:in `from_file'
FATAL: Chef::Exceptions::ResourceNotFound: resource link[/opt/logstash/server/lib/logstash.jar] is configured to notify resource service[logstash_server] with action restart, but service[logstash_server] cannot be found in the resource collection. link[/opt/logstash/server/lib/logstash.jar] is defined in /var/cache/chef/cookbooks/logstash/recipes/server.rb:71:in `from_file'
.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/net/http.rb:762:in `initialize': Connection refused - connect(2) (Errno::ECONNREFUSED)
from /home/afresta/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/net/http.rb:762:in `open'
from /home/afresta/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/net/http.rb:762:in `block in connect'
from /home/afresta/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/timeout.rb:68:in `timeout'
from /home/afresta/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/timeout.rb:99:in `timeout'
from /home/afresta/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/net/http.rb:762:in `connect'
from /home/afresta/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/net/http.rb:755:in `do_start'
from /home/afresta/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/net/http.rb:744:in `start'
from /home/afresta/.rvm/gems/ruby-1.9.3-p0/gems/rest-client-1.6.7/lib/restclient/request.rb:172:in `transmit'
from /home/afresta/.rvm/gems/ruby-1.9.3-p0/gems/rest-client-1.6.7/lib/restclient/request.rb:64:in `execute'
Feb 6 15:01:35 retail sendmail[1984]: r16L1Y70001984: [email protected], [email protected] (48/48), delay=00:00:01, xdelay=00:00:01, mailer=relay, pri=10097079, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (r16L1YVg001990 Message accepted for delivery)
Feb 6 15:01:37 retail sendmail[2064]: STARTTLS=client, relay=mx.teklinks.com., version=TLSv1/SSLv3, verify=FAIL, cipher=AES256-SHA, bits=256/256