Skip to content

Instantly share code, notes, and snippets.

@ewheeler
Created July 24, 2008 16:23
Show Gist options
  • Save ewheeler/2204 to your computer and use it in GitHub Desktop.
Save ewheeler/2204 to your computer and use it in GitHub Desktop.
error when navigating to an asset:
Processing AssetPageController#show (for 70.107.230.122 at 2008-07-24 12:04:20) [GET]
Session ID: 0b9235666ace8410e0727209a4453d53
Parameters: {"_page_action"=>"show", "action"=>"show", "_context"=>"ewheeler", "controller"=>"asset_page", "_page"=>"frontlinesms+40"}
Rendering template within layouts/page
Rendering asset_page/show
ActionView::TemplateError (wrong number of arguments (1 for 0)) on line #7 of asset_page/show.rhtml:
4: <tr>
5:
6: <td class='left'>
7: <div id='preview-wrapper'><div id='preview-area' class='<%= preview_area_class(@asset) %>'><%= asset_link_with_preview(@asset) %></
div></div>
8: <p><%= download_link %> &nbsp;&nbsp; <%= upload_link %></p>
9: <div id="upload-new" style="display: none;">
10: <% form_tag page_url(@page, :action => 'update'), :multipart => true do -%>
/usr/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active_record/associations/association_proxy.rb:177:in `thumbnail'
/usr/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active_record/associations/association_proxy.rb:177:in `send'
/usr/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active_record/associations/association_proxy.rb:177:in `method_missing'
tools/asset_tool/app/helpers/asset_page_helper.rb:50:in `preview_area_class'
tools/asset_tool/app/views/asset_page/show.rhtml:7:in `_run_erb_47tools47asset_tool47app47views47asset_page47show46rhtml'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment