Skip to content
This repository has been archived by the owner on May 8, 2018. It is now read-only.

Cannot load the My Profile > Download My Data page #14

Open
tommyvernieri opened this issue Aug 4, 2010 · 1 comment
Open

Cannot load the My Profile > Download My Data page #14

tommyvernieri opened this issue Aug 4, 2010 · 1 comment

Comments

@tommyvernieri
Copy link

When loading /user/download_data the following error is thrown.

NoMethodError in Users#download_data

Showing /home/mesabeadmin/wesabe/pfc/app/views/users/download_data.html.erb where line #12 raised:

undefined method `formatted_accounts_with_txactions_url' for #<#<Class:0xb3ff1eec>:0xb3fefa98>
Extracted source (around line #12):

9:         <div class="form-info">
10:           <p class="large">At Wesabe, you can always download all your data &mdash; your data belongs to you.<p>
11:             <p class="large">Download your transactions as
12:           <%= link_to "XML", formatted_accounts_with_txactions_url(:format => 'xml') %> or
13:           <%= link_to "CSV", formatted_txactions_url(:format => "csv") %>
14:           </p>
15:       </div>
@eventualbuddha
Copy link
Contributor

Ah, looks like this was broken during the upgrade/purge. If anyone wants to reinstate this functionality, you'd want to do something like this (from app/views/rational_txactions/index.xml.builder):

xml = ::Builder::XmlMarkup.new(:indent => params[:compact] ? 0 : 2)
xml.dasherize!
xml.instruct!
xml.txactions(:type => "array") do
  @txactions.each do |txaction|
    txaction_to_xml(xml, txaction, params.merge(:skip_instruct => true, :include_account => true, :concise => true))
  end
end

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants