a1dert/lh-tickets-test — Issue #425: Staging server: adding new employee causes crash
Author: a1dert
Created: 2011-11-30 12:16:25+00:00
State: open
Labels: 152-s

Imported from lighthouse. Original ticket at: http://redtape.lighthouseapp.com/projects/59696/tickets/143. Created by Matthew Stibbe - 2011-02-28T08:54:57Z

To recreate:

1. Login is mstibbe to art.articulateexpress.com
2. Go to employees tab
3. Click add someone new
4. Complete employee details on http://art.articulateexpress.com/admin/invitations/new
5. Press Create User button

ActionView::MissingTemplate in Admin/invitations#create

Showing /var/www/apps/redtape/staging/releases/20110225090906/app/views/users_mailer/invitation.html.erb where line #7 raised:

Missing partial mailer/contact_your_administrator with {:locale=>[:en], :handlers=>[:rhtml, :rxml, :erb, :rjs, :builder], :formats=>[:html]} in view paths "/var/www/apps/redtape/staging/releases/20110225090906/app/views", "/var/www/apps/redtape/staging/releases/20110225090906/vendor/plugins/iso-3166-country-select/app/views", "/var/www/apps/redtape/staging/shared/bundle/ruby/1.8/gems/devise_invitable-0.3.5/app/views", "/var/www/apps/redtape/staging/shared/bundle/ruby/1.8/gems/devise-1.1.3/app/views"
Extracted source (around line #7):

4:

To activate your account, you need to click on the link below to set your password and enter your details.

5: <%= link_to 'Accept invitation', edit_invitation_url(
6: :invitation_token => @user.invitation_token, :subdomain => @user.company_site_name) %>
7: <%= render "mailer/contact_your_administrator", :admin => @user.company.admin %>
Rails.root: /var/www/apps/redtape/staging/releases/20110225090906

Application Trace | Framework Trace | Full Trace
app/views/users_mailer/invitation.html.erb:7:in `_app_views_users_mailer_invitation_html_erb__241409999_63325940_0'
app/mailers/users_mailer.rb:5:in `invitation'
lib/extentions/user_devise.rb:48:in `invite_and_save'
lib/extentions/user_devise.rb:12:in `create_and_send_invitation'
lib/extentions/user_devise.rb:10:in `tap'
lib/extentions/user_devise.rb:10:in `create_and_send_invitation'
app/controllers/admin/invitations_controller.rb:14:in `create'
Request

Parameters:

{"commit"=>"Create User",
"authenticity_token"=>"y8Yw26kVb+HhNdUzQ5KeZtLELKr55dkw8PI6w0ysKOc=",
"utf8"=>"\342\234\223",
"user"=>{"username"=>"mtaylor",
"last_name"=>"Taylor",
"email"=>"mark@markjtaylor.co.uk",
"first_name"=>"Mark"}}
Show session dump

Show env dump