Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@maasdesigner
Created September 6, 2013 13:10
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 maasdesigner/6463587 to your computer and use it in GitHub Desktop.
Save maasdesigner/6463587 to your computer and use it in GitHub Desktop.
NoMethodError in Refinery/pages#show
Showing /home/maasdesigner/Desktop/metroson/app/views/refinery/pages/show.html.erb where line #6 raised:
undefined method `large' for #<Refinery::Image:0xc879ab8>
Extracted source (around line #6):
3: <ul id='gallery'>
4: <% @page.images.each_with_index do |image, index| %>
5: <li>
6: <%= link_to image_tag(image.thumbnail("200x200#c").url), image.large("900x600").url %>
7: <span class='caption'><%=raw @page.caption_for_image_index(index) %></span>
8: </li>
9: <% end %>
Rails.root: /home/maasdesigner/Desktop/metroson
Application Trace | Framework Trace | Full Trace
app/views/refinery/pages/show.html.erb:6:in `block (2 levels) in _app_views_refinery_pages_show_html_erb___567819488_105193870'
app/views/refinery/pages/show.html.erb:4:in `block in _app_views_refinery_pages_show_html_erb___567819488_105193870'
app/views/refinery/pages/show.html.erb:2:in `_app_views_refinery_pages_show_html_erb___567819488_105193870'
Request
Parameters:
{"path"=>"doktorlarimiz",
"locale"=>:en,
"page"=>1}
Show session dump
Show env dump
Response
Headers:
None
<% content_for :body_content_right do %>
<ul id='gallery'>
<% @page.images.each_with_index do |image, index| %>
<li>
<%= link_to image_tag(image.thumbnail("200x200#c").url), image.large("900x600").url %>
<span class='caption'><%=raw @page.caption_for_image_index(index) %></span>
</li>
<% end %>
</ul>
<% end %>
<%= render '/refinery/content_page', :hide_sections => :body_content_title %>
<%= render '/refinery/photo_gallery/albums/show' %>
<%= render '/refinery/contacts/contacts/show' %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment