This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pdf.text "Pacific Advisors Dashboard", :size => 24, :style => :bold | |
pdf.move_down(20) | |
pdf.text "Top Producers in Total Premium" | |
pdf.text "This Month (September 2009) Total Premium" | |
top_producers_premium_list = [] | |
@top_producers_premium.each_with_index do |i, idx| | |
top_producers_premium_list << [ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rails@vm04:/srv/statusroom/current/log$ tail -f production.log | |
Rendering /srv/statusroom/releases/20090921105125/public/404.html (404 Not Found) | |
Processing DashboardController#redirect (for 64.22.127.26 at 2009-09-21 11:34:39) [GET] | |
Session ID: a2602191098de44a86197455def4f8e3 | |
Parameters: {"action"=>"redirect", "controller"=>"dashboard"} | |
Redirected to https://vm04.statusroom.c3media.managedmachine.com/ | |
Filter chain halted as [:ensure_proper_protocol] rendered_or_redirected. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
~/www/railsmachine/statusroom(production) > cap production deploy HOSTFILTER=vm09.statusroom.c3media.managedmachine.com,vm10.statusroom.c3media.managedmachine.com | |
* executing `production' | |
triggering start callbacks for `deploy' | |
* executing `multistage:ensure' | |
* executing `deploy' | |
* executing `deploy:update' | |
** transaction: start | |
* executing `deploy:update_code' | |
executing locally: "git ls-remote [email protected]:c3mediagroup/statusroom.git production" | |
* executing "git clone -q [email protected]:c3mediagroup/statusroom.git /srv/statusroom/releases/20090917214559 && cd /srv/statusroom/releases/20090917214559 && git checkout -q -b deploy 60ad7f123c8dae04a669c0808ea4c803fdd6f61e && git submodule -q init && git submodule -q sync && git submodule -q update && (echo 60ad7f123c8dae04a669c0808ea4c803fdd6f61e > /srv/statusroom/releases/20090917214559/REVISION)" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
~/www/railsmachine/statusroom(production) > cap production deploy HOSTFILTER=vm09.statusroom.c3media.managedmachine.com,vm10.statusroom.c3media.managedmachine.com | |
* executing `production' | |
triggering start callbacks for `deploy' | |
* executing `multistage:ensure' | |
* executing `deploy' | |
* executing `deploy:update' | |
** transaction: start | |
* executing `deploy:update_code' | |
-------- snippping all is well responses ------------------- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>> Premium.update_from_guardian('2008-12-31', '2008-01-01') | |
Updating Paid For (Premiums) information from Guardian | |
Logging into Guardian... | |
Accessing report page | |
Setting up report options | |
Generating data | |
Downloading data | |
Saving Underwriting report as: /srv/statusroom/releases/20090827205415/reports/paidfor/paid-for-20080101-thru-20081231-134047.txt | |
payment import key length: 51 | |
matching format |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
?> user = User.find(210) | |
=> #<User id: 210, login: "robert_wynn", email: "[email protected]", remember_token: nil, crypted_password: "512ad67e4c1885e18fac75dab6215f25989e414a", salt: "6b2c1f82c74380319f02644ca1ef04d1f4a9ed1a", remember_token_expires_at: nil, updated_at: "2009-09-01 20:17:49", created_at: "2008-08-08 17:26:41", account_id: 1, admin: false, name: "Robert Wynn", roles: nil, advisor: true, manager: false, executive: false, image: nil, active: true, guardian_name: "ROBERT WYNN", guardian_num: "XV306", phone_work: "", phone_mobile: "", bio: "", designations: "", street: "", city: "", state: "", zip: "", office: "", model: nil, first_name: "Robert", last_name: "Wynn", app_user: true, staff: nil, contract_classification: nil, contract_relationship: nil, license: nil, bus_card_use: nil, lbs_use: nil, advisor_location: nil, contract_status: nil, alt_email: nil, contract_date: nil, contract_notes: nil, contract_yr_class: nil, display_name: "Robert Wynn", street_2: nil, state_2: nil, zip_2: nil, birth |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ActionController::InvalidAuthenticityToken in UsersController#create | |
ActionController::InvalidAuthenticityToken | |
RAILS_ROOT: /Users/rpierce2/www/railsmachine/statusroom | |
Application Trace | Framework Trace | Full Trace | |
vendor/rails/actionpack/lib/action_controller/request_forgery_protection.rb:86:in `verify_authenticity_token' | |
vendor/rails/activesupport/lib/active_support/callbacks.rb:178:in `send' | |
vendor/rails/activesupport/lib/active_support/callbacks.rb:178:in `evaluate_method' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /app/views/user/new.html.erb | |
<h1><%= @page_title = 'Create User' %></h1> | |
<% if current_account.reached_user_limit? %> | |
<p> | |
You have reached the maximum number of users you can have with your account level. You can either delete some of your users or <a href="/account/plan">upgrade your account</a> to be able to create a new user. | |
</p> | |
<% else %> | |
<% form_for @user, :html => { :id => 'new_user_form', :multipart => true, :class => "wufoo topLabel"} do |f| -%> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class DashboardController < ApplicationController | |
def index | |
# @charts = OrderedHash.new | |
# @charts['Overall Performance'] = Chart.new(current_account.categorical_years.for(@year_num)).generate(:size => '310x220') | |
# @charts['Fixed Products'] = Chart.new(current_account.fixed_product_years.for(@year_num)).generate(:size => '310x220') | |
# @top_producers_premium = PaymentEvent.year(Time.now.year).sum_total.all(:order => "total DESC", :limit => 10, :include => :advisor) | |
@top_producers_premium = PaymentEvent.year(Time.now.year).sum_total.all(:order => "total DESC", :limit => 10, :include => :advisor).collect{|prem| p [prem.advisor_id, prem.total] } | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#left | |
-if current_account.dashboard_news.present? | |
.information{:style => "height:auto"} | |
.title Current News | |
.content= current_account.dashboard_news | |
%br.clear | |
#top_producers.section | |
.title< | |
%h3< |
NewerOlder