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
<html> | |
<head> | |
<title>{{title}}</title> | |
... |
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
<link media="all" href={{css}}" type="text/css" rel="stylesheet"> |
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
#header { | |
padding: 0; | |
margin: 0; | |
background: url(/images/design-suite/Common/Header.gif) top left no-repeat; | |
width: 900px; | |
height: 150px; | |
} |
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
#header { | |
padding: 0; | |
margin: 0; | |
background: url({{assets_path}}Header.gif) top left no-repeat; | |
width: 900px; | |
height: 150px; | |
} |
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
<div class="landing_header">{{banner_image}}</div> |
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
<div class="deluxe_price"><img src="{{image_path}}DeluxePrice-89.gif" name="DeluxePrice89" id="DeluxePrice89" height="105" width="480"></div> | |
<div class="deluxe_image"><img src="{{image_path}}DeluxeImage.gif" height="220" width="230"></div> | |
<div class="deluxe_package_includes">Deluxe Package includes:</div> |
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
<div class="deluxe_price">{{deluxe_promo_image}}</div> | |
<div class="deluxe_image"><img src="{{image_path}}DeluxeImage.gif" height="220" width="230"></div> | |
<div class="deluxe_package_includes">Deluxe Package includes:</div> |
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
class SoxEncoder | |
attr_accessor :input_files, :output_file, :command_line | |
def initialize | |
@input_files = [] | |
end | |
def input_file=(filename) | |
@input_files << filename |
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
require 'sox_encoder' | |
module Paperclip | |
class Audio < Processor | |
attr_accessor :convert_options | |
def initialize file, options = {}, attachment = nil | |
super |
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
eric-berrys-macbook:voiceverify berry$ ./script/console | |
Loading development environment (Rails 2.3.2) | |
>> t = Paperclip::Audio | |
=> Paperclip::Audio | |
>> t = Paperclip::Audio.new(File.open("/Users/berry/Desktop/01.wav")) | |
=> #<Paperclip::Audio:0x2a7126c @attachment=nil, @convert_options=nil, @file=#<File:/Users/berry/Desktop/01.wav>, @basename="01", @options={}, @format="mp3", @current_format=".wav"> | |
>> t.make | |
MADE IT HERE!!!!!! | |
sox /Users/berry/Desktop/01.wav /var/folders/EQ/EQCcBJUiHaGqDrTgKsjAw++++TI/-Tmp-/01,2097,0.mp3 | |
=> #<File:/var/folders/EQ/EQCcBJUiHaGqDrTgKsjAw++++TI/-Tmp-/01,2097,0.mp3> |