Skip to content

Instantly share code, notes, and snippets.

@ruprict
Created April 20, 2010 00:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ruprict/371851 to your computer and use it in GitHub Desktop.
Save ruprict/371851 to your computer and use it in GitHub Desktop.
ActionView::TemplateError (portfolio_image_url failed to generate from {:action=>"show", :controller=>"portfolio", :portfolio_id=>0, :id=>#<PortfolioEntry id: 1, title: "Photo Album", body: "", position: nil, parent_id: nil, created_at: "2010-04-19 17:19:51", updated_at: "2010-04-19 17:19:51">}, expected: {:action=>"show", :controller=>"portfolio"}, diff: {:portfolio_id=>0, :id=>#<PortfolioEntry id: 1, title: "Photo Album", body: "", position: nil, parent_id: nil, created_at: "2010-04-19 17:19:51", updated_at: "2010-04-19 17:19:51">}) on line #17 of vendor/plugins/refinerycms-portfolio/app/views/portfolio/show.html.erb:
14: <ul id='portfolio_images'>
15: <% @portfolio_entry.images.each_with_index do |image, index| %>
16: <li class='<%= cycle("odd", "even") %>'>
17: <%= link_to_portfolio_image @master_entry, @portfolio_entry, image, index %>
18: </li>
19: <% end %>
20: </ul>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment