Skip to content

Instantly share code, notes, and snippets.

View patrickberkeley's full-sized avatar

Patrick Berkeley patrickberkeley

View GitHub Profile
ActionView::TemplateError (xml_url failed to generate from {:type=>"article", :format=>"rss20", :action=>"feed", :controller=>"xml", :id=>#<Article id: 3, type: "Article", title: "test", author: "test", body: "test", extended: "", excerpt: nil, keywords: "test", created_at: "2008-10-02 13:12:49", updated_at: "2008-10-02 13:16:33", user_id: 1, permalink: "test", guid: "386f1c91-d432-4b92-bb6e-ac2d1dc333ee", text_filter_id: nil, whiteboard: nil, name: nil, published: true, allow_pings: true, allow_comments: true, published_at: "2008-10-02 13:11:00", state: "published">}, expected: {:type=>"sitemap", :format=>"googlesitemap", :action=>"feed", :controller=>"xml"}, diff: {:type=>"sitemap", :format=>"googlesitemap", :id=>#<Article id: 3, type: "Article", title: "test", author: "test", body: "test", extended: "", excerpt: nil, keywords: "test", created_at: "2008-10-02 13:12:49", updated_at: "2008-10-02 13:16:33", user_id: 1, permalink: "test", guid: "386f1c91-d432-4b92-bb6e-ac2d1dc333ee", text_filter_id: nil, whiteb
wrong argument type String (expected Module)
Extracted source (around line #38):
35: <% fields_for "application_form[training_experiences][]", TrainingExperience.new do |ff| %>
36: <tr>
37: <td class="label required"><%= label :type, "Type" %>
38: <td><%= ff.select(:type, TrainingExperience.types, { :include_blank => true }) %>
39: <tr>
40: <td class="label required"><%= label :location, "Location" %>
undefined method `app' for #<CandidateMembershipForm:0x243bac8>
Product.find_by_category(category_id, ????, "display_on ASC")
def run_transaction_paypal_wpp(remote_ip)
ba = self.billing_address
logger.info ("\n\n\n\n Before credit_card:#{self.account.cc_type} \n\n\n\n")
credit_card = ActiveMerchant::Billing::CreditCard.new(
:type => self.account.cc_type.to_s,
:number => self.account.cc_number,
:month => self.account.expiration_month,
:year => self.account.expiration_year,
:first_name => ba.first_name,
:last_name => ba.last_name
<% if @order_account.cc_type %>
<% @selected = @order_account.cc_type %>
<% end %>
<td><%= select('order_account', 'cc_type', OrderAccount.cc_type, {:selected => @selected}, {:tabindex => "9"}) %>
Filter chain halted as [#<ActionController::Filters::ClassMethods::SymbolFilter:0x2aaaaec955f8 @filter=:ssl_required>] rendered_or_redirected.
# My sample caconfig.cnf file.
#
# Default configuration to use when one is not provided on the command line.
#
[ ca ]
default_ca = local_ca
#
#
# Default location of directories and files needed to generate certificates.
#
@data={:last_order_list_view=>"All", :order_id=>nil, :cart=>#<Cart:0x250c27c @items=[#<OrderLineItem id: nil, item_id: 2, order_id: 0, quantity: 1, unit_price: 95.0, name: "test">], @shipping_cost=0.0, @tax=0.0, @total=0.0>, :user=>1, :return_to=>nil, :product_id=>"2", "flash"=>{}}