I hereby claim:
- I am asanghi on github.
- I am adity (https://keybase.io/adity) on keybase.
- I have a public key ASDisOwJVwAOz3VRPxF28kZ9Q00xwnLB4R63BvMoa4qqgwo
To claim this, I am signing this object:
def import | |
file_param = params[:excel_file] | |
Spreadsheet.client_encoding = 'UTF-8' | |
begin | |
spreadsheet = Spreadsheet.open(file_param.local_path) | |
# do stuff with spreadsheet here using the spreadsheet api | |
rescue Exception => e | |
flash[:error] = "Error uploading Excel file : #{e.to_s}" | |
end | |
redirect_to root_path |
#---------------------------------------------------------------------------- | |
# Gems | |
#---------------------------------------------------------------------------- | |
puts "=" * 80 | |
puts "Setup Gemfile" | |
puts "=" * 80 | |
remove_file "Gemfile" | |
create_file "Gemfile" | |
gem 'faker' |
en: | |
formtastic: | |
labels: | |
user: | |
%{nested_model}: | |
name: Formtastic is looking for this key user.%{nested_model}.name!! |
=========================================================================== | |
Exception that got raised: | |
Broken pipe | |
=========================================================================== | |
/usr/local/ruby-enterprise/lib/ruby/1.8/net/protocol.rb:177:in `write' | |
/usr/local/ruby-enterprise/lib/ruby/1.8/net/protocol.rb:177:in `write0' | |
/usr/local/ruby-enterprise/lib/ruby/1.8/net/protocol.rb:153:in `write' | |
/usr/local/ruby-enterprise/lib/ruby/1.8/net/protocol.rb:168:in `writing' | |
/usr/local/ruby-enterprise/lib/ruby/1.8/net/protocol.rb:152:in `write' | |
/usr/local/ruby-enterprise/lib/ruby/1.8/net/http.rb:1563:in `send_request_with_body_stream' |
# Wouldnt it be cool if the Migration was further DSLed up to be just | |
class CreatePosts < ActiveRecord::Migration | |
change(:raise_down_error => false, :no_foreign_key_index => true) do | |
create_table :posts do |t| | |
t.string :title | |
t.text :body | |
t.timestamps | |
end |
[GEM_ROOT]/gems/dalli-1.1.3/lib/active_support/cache/dalli_store.rb:165:in `to_proc' | |
[GEM_ROOT]/gems/actionpack-3.0.10/lib/action_controller/metal/instrumentation.rb:22:in `map' | |
[GEM_ROOT]/gems/actionpack-3.0.10/lib/action_controller/metal/instrumentation.rb:22:in `process_action' | |
[GEM_ROOT]/gems/actionpack-3.0.10/lib/abstract_controller/base.rb:119:in `process' | |
[GEM_ROOT]/gems/actionpack-3.0.10/lib/abstract_controller/rendering.rb:41:in `process' |
CONTENT_LENGTH | |
"0" | |
DOCUMENT_ROOT | |
"/u/apps/punchh/production/current/public" | |
HTTP_ACCEPT_ENCODING | |
"gzip" | |
HTTP_ACCEPT_LANGUAGE | |
"en-US,*" | |
HTTP_CONNECTION | |
"Keep-Alive" |
class CarsController < ApplicationController | |
def index | |
@user = load_user # Load the user | |
prepend_view_path @user.resolver # Get the resolver | |
end | |
end |
def read_until_eot(socket) | |
eot_found = false | |
message = '' | |
begin | |
message += socket.read() | |
eot_found = message['\004'].present? # <-- ughh what can i do? | |
end until eot_found | |
message | |
end |
I hereby claim:
To claim this, I am signing this object: