This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ruby --version | |
ruby 1.9.3p448 (2013-06-27 revision 41675) [i686-linux] | |
maasdesigner@ubuntu:~/Desktop/ruby1$ ruby init.rb | |
/home/maasdesigner/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:51:in `require': cannot load such file -- cart (LoadError) | |
from /home/maasdesigner/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:51:in `require' | |
from init.rb:1:in `<main>' | |
maasdesigner@ubuntu:~/Desktop/ruby1$ ruby init.rb | |
init.rb:1: syntax error, unexpected tIDENTIFIER, expecting $end | |
require 'cart.rb' require 'item.rb' | |
^ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gem --version | |
2.0.7 | |
maasdesigner@ubuntu:~/Desktop/ruby1$ ruby --version | |
ruby 1.9.3p448 (2013-06-27 revision 41675) [i686-linux] | |
maasdesigner@ubuntu:~/Desktop/ruby1$ ruby init.rb | |
/home/maasdesigner/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:51:in `require': cannot load such file -- cart (LoadError) | |
from /home/maasdesigner/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:51:in `require' | |
from init.rb:1:in `<main>' | |
maasdesigner@ubuntu:~/Desktop/ruby1$ ruby init.rb | |
init.rb:1: syntax error, unexpected tIDENTIFIER, expecting $end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<ul class="lb-album"> | |
<li> | |
<a href="#image-1"> | |
<img src="lit1.jpg" alt="image01"> | |
<span></span> </a> | |
<div class="lb-overlay" id="image-1"> | |
<a href="#page" class="lb-close"></a> | |
<img src="full1.jpg" alt="image01"/> | |
<div><h3> <span></span></h3></div></div></li> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<ul id="gallery" class="lb-album"> | |
<% photos_for_page.each_with_index do |photo, index| %> | |
<li> | |
<%= link_to (image_tag photo.file.url(:album), :width => Refinery::PhotoGallery.album_dimensions[0], :height => Refinery::PhotoGallery.album_dimensions[1] ), photo.file.single.url, { | |
:target=> "_blank", | |
:class=>"lb-overlay", | |
:data =>{:title=> t('.image') + ' ' + (index + 1 ).to_s + '/' + photos_for_page.total_pages.to_s + ' ' + photo.title + '<br/><br/>' + photo.description}, | |
:rel=>"group", | |
:title=> photo.title } %> | |
</li> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NoMethodError in Refinery/pages#show | |
Showing /home/maasdesigner/Desktop/metroson/app/views/refinery/photo_gallery/albums/_photos.html.erb where line #10 raised: | |
undefined method `preview_link' for #<Refinery::PhotoGallery::Photo:0x9e2c580> | |
Extracted source (around line #10): | |
7: <ul id="gallery" class="clearfix"> | |
8: <% photos_for_page.each_with_index do |photo, index| %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<ul id="gallery" class="clearfix"> | |
<% photos_for_page.each_with_index do |photo, index| %> | |
<li> | |
<%= link_to (image_tag photo.preview_link(:album), :width => Refinery::PhotoGallery.album_dimensions[0], :height => Refinery::PhotoGallery.album_dimensions[1] ), photo.link_url, { | |
:target=> "_blank", | |
:class=>"fancybox", | |
:data =>{:title=> t('.image') + ' ' + (index + 1 ).to_s + '/' + photos_for_page.total_pages.to_s + ' ' + photo.title + '<br/><br/>' + photo.description}, | |
:rel=>"group", | |
:title=> photo.title } %> | |
</li> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<ul class='lb-album'> | |
<% @page.images.each do |image| %> | |
<li> | |
<%= link_to image_tag(image.thumbnail("200x200#c").url) %> | |
<div class="lb-overlay" id="id<%= 'image.thumbnail.url' %>"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<li> | |
<%= link_to image_tag(image.thumbnail("200x200#c").url, { id: 'image-01' }) %> | |
<div class="lb-overlay" id="image<%= image.thumbnail("200x200#c").url %>"> | |
<%= image_tag image.thumbnail("900x600").url %> | |
<span class='caption'><%=raw @page.caption_for_image_index(index) %></span> | |
</div> | |
</li> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<% 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.thumbnail("900x600").url %> | |
<span class='caption'><%=raw @page.caption_for_image_index(index) %></span> | |
</li> | |
<% end %> | |
</ul> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<% content_for :body_content_right do %> | |
<ul class='lb-album'> | |
<% @page.images.each_with_index do |image, index| %> | |
<li> | |
<%= link_to image_tag(image.thumbnail("200x200#c").url), image.thumbnail("900x600").url %> | |
<span class='caption'><%=raw @page.caption_for_image_index(index) %></span> | |
</li> | |
<% end %> | |
</ul> | |
<% end %> |