Skip to content

Instantly share code, notes, and snippets.

@chriskk
Created July 9, 2013 02:30
Show Gist options
  • Save chriskk/5954235 to your computer and use it in GitHub Desktop.
Save chriskk/5954235 to your computer and use it in GitHub Desktop.
rspec error
Failures:
1) Refinery BusinessInquiries business_inquiries GET /business_inquiries/new should display the form and all fields
Failure/Error: visit refinery.new_business_inquiries_business_inquiry_path
ActionView::Template::Error:
uninitialized constant ActionView::CompiledTemplates::Appname
# /Users/chriskk/apps/appname/vendor/extensions/business_inquiries/app/views/refinery/business_inquiries/business_inquiries/new.html.erb:32:in `block (2 levels) in ___sers_chriskk_apps_appname_vendor_extensions_business_inquiries_app_views_refinery_business_inquiries_business_inquiries_new_html_erb___1273271278936162194_70175016498320'
<% content_for :body do %>
<div class='business_inquiries'>
<%=raw @page.content_for(Refinery::Pages.default_parts.first.to_sym) %>
<%= form_for [refinery, :business_inquiries, @business_inquiry] do |f| %>
<%= render '/refinery/admin/error_messages',
:object => @business_inquiry,
:include_object_name => true %>
<div class='field company_name_field string_field'>
<%= f.required_label :company_name %>
<%= f.text_field :company_name %>
</div>
<div class='field first_name_field string_field'>
<%= f.label :first_name %>
<%= f.text_field :first_name %>
</div>
<div class='field last_name_field string_field'>
<%= f.label :last_name %>
<%= f.text_field :last_name %>
</div>
<div class='field phone_field string_field'>
<%= f.label :phone %>
<%= f.text_field :phone %>
</div>
<div class='field island_field select_field'>
<%= f.label :island %>
<%= f.select :island, Appname::ISLANDS,
:include_blank => true %>
</div>
<div class='field email_field string_field'>
<%= f.label :email %>
<%= f.text_field :email %>
</div>
<div class='field current_customer_field radio_field'>
<%= f.label :current_customer %>
<% Refinery::BusinessInquiries::BusinessInquiry::CURRENT_CUSTOMERS.each do |value, name| %>
<%= f.radio_button :current_customer, (name || value), :value => value %>
<%= f.label :"current_customer_#{(name || value)}", value.humanize %>
<% end %>
</div>
<div class='field service_expiration_field radio_field'>
<%= f.label :service_expiration %>
<% Refinery::BusinessInquiries::BusinessInquiry::SERVICE_EXPIRATIONS.each do |value, name| %>
<%= f.radio_button :service_expiration, (name || value), :value => value %>
<%= f.label :"service_expiration_#{(name || value)}", value.humanize %>
<% end %>
</div>
<div class='field switch_timing_field radio_field'>
<%= f.label :switch_timing %>
<% Refinery::BusinessInquiries::BusinessInquiry::SWITCH_TIMINGS.each do |value, name| %>
<%= f.radio_button :switch_timing, (name || value), :value => value %>
<%= f.label :"switch_timing_#{(name || value)}", value.humanize %>
<% end %>
</div>
<div class='field purchase_units_field string_field'>
<%= f.label :purchase_units %>
<%= f.text_field :purchase_units %>
</div>
<div class='actions'>
<%= f.submit t('.send') %>
</div>
<% end %>
</div>
<% end %>
<%= render '/refinery/content_page' %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment