This file contains hidden or 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 GenerateImageThumbnailsJob < Struct.new(:photo_id) | |
def perform | |
photo = Photo.find(photo_id) | |
photo.medium_image = photo.image.thumb('940x600') | |
photo.large_image = photo.image.thumb('450x') | |
photo.small_image = photo.image.thumb('172x167#c') | |
photo.save | |
end |
This file contains hidden or 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
jQuery16408981715778354555_1324454856478( | |
{ | |
term: "tes", | |
results: { | |
movie: [ | |
{ | |
term: "Test Movie", | |
id: 2, | |
data: { | |
subtitle: "Test Movie", |
This file contains hidden or 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
Started POST "/galleries/create_from_email" for 10.86.34.175 at 2011-12-14 13:34:33 -0800 | |
Processing by GalleriesController#create_from_email as HTML | |
Parameters: {"attachment17"=>#<ActionDispatch::Http::UploadedFile:0x0000000b37a8b0 @original_filename="Trisha (57).jpg", @content_type="image/jpeg", @headers="Content-Disposition: form-data; name=\"attachment17\"; filename=\"Trisha %2857%29.jpg\"\r\nContent-Type: image/jpeg\r\n", @tempfile=#<File:/tmp/RackMultipart20111214-13252-18puoo9>>, "attachment2"=>#<ActionDispatch::Http::UploadedFile:0x0000000b37a810 @original_filename="Trisha (42).jpg", @content_type="image/jpeg", @headers="Content-Disposition: form-data; name=\"attachment2\"; filename=\"Trisha %2842%29.jpg\"\r\nContent-Type: image/jpeg\r\n", @tempfile=#<File:/tmp/RackMultipart20111214-13252-3msil8>>, "dkim"=>"{@gmail.com : fail (body has been altered)}", "attachment29"=>#<ActionDispatch::Http::UploadedFile:0x0000000b37a748 @original_filename="Trisha (69).jpg", @content_type="image/jpeg", @headers="C |
This file contains hidden or 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
*** Exception Errno::ENOENT in Class (No such file or directory - config.ru) (process 5208, thread #<Thread:0x00000000d3f478>): | |
from /usr/local/rvm/gems/ruby-1.9.2-p180/gems/passenger-3.0.8/lib/phusion_passenger/rack/application_spawner.rb:221:in `read' | |
from /usr/local/rvm/gems/ruby-1.9.2-p180/gems/passenger-3.0.8/lib/phusion_passenger/rack/application_spawner.rb:221:in `load_rack_app' | |
from /usr/local/rvm/gems/ruby-1.9.2-p180/gems/passenger-3.0.8/lib/phusion_passenger/rack/application_spawner.rb:74:in `block (2 levels) in spawn_application' | |
from /usr/local/rvm/gems/ruby-1.9.2-p180/gems/passenger-3.0.8/lib/phusion_passenger/utils.rb:572:in `report_app_init_status' | |
from /usr/local/rvm/gems/ruby-1.9.2-p180/gems/passenger-3.0.8/lib/phusion_passenger/rack/application_spawner.rb:72:in `block in spawn_application' | |
from /usr/local/rvm/gems/ruby-1.9.2-p180/gems/passenger-3.0.8/lib/phusion_passenger/utils.rb:479:in `safe_fork' | |
from /usr/local/rvm/gems/ruby-1.9.2-p180/gems/passenger-3.0.8/lib/phusion_passenger/ra |
This file contains hidden or 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
[ pid=30190 thr=9726520 file=utils.rb:176 time=2011-08-08 17:47:57.433 ]: *** Exception PGError in application (server closed the connection unexpectedly | |
This probably means the server terminated abnormally | |
before or while processing the request. | |
) (process 30190, thread #<Thread:0x0000000128d470>): | |
from /mnt/nrimovies-production/shared/bundle/ruby/1.9.1/gems/activerecord-3.1.0.rc5/lib/active_record/connection_adapters/postgresql_adapter.rb:272:in `exec' | |
from /mnt/nrimovies-production/shared/bundle/ruby/1.9.1/gems/activerecord-3.1.0.rc5/lib/active_record/connection_adapters/postgresql_adapter.rb:272:in `block in clear_cache!' | |
from /mnt/nrimovies-production/shared/bundle/ruby/1.9.1/gems/activerecord-3.1.0.rc5/lib/active_record/connection_adapters/postgresql_adapter.rb:271:in `each_value' | |
from /mnt/nrimovies-production/shared/bundle/ruby/1.9.1/gems/activerecord-3.1.0.rc5/lib/active_record/connection_adapters/postgresql_adapter.rb:271:in `clear_cache!' | |
from /mnt/nrimovies-production/shared/bundle/ruby/1.9 |
This file contains hidden or 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
[ pid=18421 thr=70134877964720 file=utils.rb:176 time=2011-06-08 01:21:06.693 ]: *** Exception PGError in application (server closed the connection unexpectedly | |
This probably means the server terminated abnormally | |
before or while processing the request. | |
) (process 18421, thread #<Thread:0x7f9318f99360>): | |
from /usr/local/rvm/gems/ruby-1.8.7-p334/gems/activerecord-3.1.0.rc1/lib/active_record/connection_adapters/postgresql_adapter.rb:273:in `query' | |
from /usr/local/rvm/gems/ruby-1.8.7-p334/gems/activerecord-3.1.0.rc1/lib/active_record/connection_adapters/postgresql_adapter.rb:273:in `clear_cache!' | |
from /usr/local/rvm/gems/ruby-1.8.7-p334/gems/activerecord-3.1.0.rc1/lib/active_record/connection_adapters/postgresql_adapter.rb:272:in `each_value' | |
from /usr/local/rvm/gems/ruby-1.8.7-p334/gems/activerecord-3.1.0.rc1/lib/active_record/connection_adapters/postgresql_adapter.rb:272:in `clear_cache!' | |
from /usr/local/rvm/gems/ruby-1.8.7-p334/gems/activerecord-3.1.0.rc |
This file contains hidden or 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
Factory.define :gallery do |f| | |
f.name "Gallery Name" | |
end | |
Factory.define :region do |f| | |
f.name "Telugu" | |
end |
This file contains hidden or 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 WmsWebCma::ApplicationController < ActionController::Base | |
protect_from_forgery | |
before_filter :set_locale | |
helper_method :current_agent, :company_branding | |
def current_agent | |
@current_agent ||= (session[:current_agent] ? Agent.find(session[:current_agent]["uuid"]) : nil) | |
end |
This file contains hidden or 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
* executing `rubber:passenger:remove_config_ru' | |
* executing "sudo -p 'sudo password: ' bash -l -c 'rm -f /mnt/mekosam-production/releases/20110613212116/config.ru'" | |
servers: ["production.mekosam.com"] | |
[production.mekosam.com] executing command | |
command finished in 380ms | |
* executing "sudo -p 'sudo password: ' bash -l -c 'cd /mnt/mekosam-production/releases/20110613212116 && RUBBER_ENV=\"production\" FILE=\"role/postgresql_master|role/db/\" FORCE=\"true\" bundle exec rake rubber:config'" | |
servers: ["production.mekosam.com"] | |
[production.mekosam.com] executing command | |
** [out :: production.mekosam.com] (in /mnt/mekosam-production/releases/20110613212116) | |
** [out :: production.mekosam.com] rake aborted! |