Changeset 1164
- Timestamp:
- 09/30/06 14:41:56 (2 years ago)
- Files:
-
- peasantonline/app/controllers/application.rb (modified) (1 diff)
- peasantonline/app/views/catalog/_product_list.rhtml (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
peasantonline/app/controllers/application.rb
r1153 r1164 25 25 def create_main(file_src, file_dest, height, width) 26 26 tmp_main = Magick::Image.read(file_src).first 27 tmp_main.change_geometry !("#{width}x#{height}") { |cols, rows, img|27 tmp_main.change_geometry("#{width}x#{height}") { |cols, rows, img| 28 28 main = img.resize!(cols, rows) 29 29 main.write(file_dest) {self.quality = 70} peasantonline/app/views/catalog/_product_list.rhtml
r1064 r1164 7 7 <%= link_to '<img src="/images/interface/spacer.png" height="143" width="170" border="0"/>', :controller => 'shop', :action=> 'product', :id => product.id %><br /> 8 8 <div class="product-holder-text"> 9 <%= link_to product.name .capitalize, :controller => 'shop', :action=> 'product', :id => product.id %><br />9 <%= link_to product.name, :controller => 'shop', :action=> 'product', :id => product.id %><br /> 10 10 <%= product.short_description %> 11 11 </div>