Error Unable To Create File Test/fixtures/question Mark.png
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Rails 3.1, paperclip, s3 - uninitialized constant AWS::S3::Base up vote 10 down vote favorite 2 I am getting the following error when trying to upload an image using paperclip and s3 storage. The app worked fine uploading locally, but when I've made the required changes to use s3 I get the following: NameError in ImagesController#create uninitialized constant AWS::S3::Base Gemfile source 'http://rubygems.org' gem 'rails', '3.1.3' gem 'sqlite3' group :assets do gem 'sass-rails', '~> 3.1.5' gem 'coffee-rails', '~> 3.1.1' gem 'uglifier', '>= 1.0.3' gem 'dynamic_form' end gem 'aws-sdk' gem 'paperclip' models/Image.rb class Image < ActiveRecord::Base has_attached_file :file, :styles => { :featured => "970x560>", :thumb => "192x112>" }, :storage => :s3, :s3_credentials => "#{Rails.root}/config/amazon_s3.yml" end config/amazon_s3.yml bucket: myapp-dev access_key_id: #################### secret_access_key: ################################ Bundled gems: aws-sdk (1.2.5) paperclip (2.4.5) rails (3.1.3) ruby-on-rails paperclip share|improve this question asked Jan 4 '12 at 21:14 Oll 50211023 You probably need to include AWS::S3 somewhere. –Robin Jan 4 '12 at 21:19 add a comment| 2 Answers 2 active oldest votes up vote 25 down vote accepted Paperclip 2.4.5 still uses the aws-s3 gem. (The README on Github refers to aws-sdk, but that's only for the unreleased master branch). Change your Gemfile line to: gem "aws-s3", :require => "aws/s3" or use the master branch instead of the stable version (which of course has some risk involved): gem 'paperclip', :git => "git://github.com/thoughtbot/paperclip.git" gem "aws-sdk" UPDATE: Paperclip 2.5.0, released on 1/13/2012, now uses aws-sdk. share|improve this answer edited Jan 20 '12 at 13:12 answered Jan 5 '12 at 0:31 Dylan Markow 90.9k15224173 1 Upgrading paperclip to 2.5.0 did the trick for me –Abe Petrillo Feb 12 '12 at 15:26 does this mean that we need to remove the line gem "aw
<%= Fixtures.identify(:big_brother).name %> --> That won't work. identify() returns an integer (the object's id, not the object itself). use rails fixture object in another fixture file - Stack Overflow View More at http://stackoverflow.com/questions/3193591/use-rails-fixture-obje... Fetching git://github.com/thoughtbot/paperclip.git remote: Counting objects: 5602, done. remote: Compressing objects: 100% (2419/2419), done. remote: Total 5602 (delta 3868), reused 4704 (delta 3065) Receiving objects: 100% (5602/5602), 855.88 KiB | 314 KiB/s, done. Resolving deltas: 100% (3868/3868), done. error: unable to create file test/fixtures/question?mark.png (Invalid argument) so checking out gem 'paperclip', :git => "git://github.com/thoughtbot/paperclip.git" directly does not http://stackoverflow.com/questions/8734130/rails-3-1-paperclip-s3-uninitialized-constant-awss3base solve the issue. gem "aws-s3", :require => "aws/s3" solves the issue for now but it probably means no update to the 2.5.0 for now Rails 3.1, paperclip, s3 - uninitialized constant AWS::S3::Base - Stac... View More at http://stackoverflow.com/questions/8734130/rails-3-1-paperclip-s3... Are you using any kind of framework here? Could these values be stored in a single source - a config file - which both creates https://recalll.co/app/?q=use%20rails%20fixture%20object%20in%20another%20fixture%20file a list of the objects in PHP and also populates the table when you bootstrap the database? I'm thinking from a Rails perspective, as it's been a while since I've written any PHP. Solution there would probably be fixtures. Database design: Matching sql database keys to php constants? - Stack ... View More at http://stackoverflow.com/questions/3523147/database-design-matchi... View More Recalll - Medium for programmers. Recalll is crowed sourced knowledge vault, where community can create, curate and access qualitative knowledge, In form of small and precise topics. Check this Out Similar queries use rails fixture object in another fixture file - Stack Overflow Fixtures Copy All Object Values from Another Instance of the Same Type Using Reflection Use Marshal, PStore, or another Ruby solution for non-JSON objects Test: You can use the -i option to backup the original file or redirect the following output to another file. Create Collections Add search results to the collections by just clicking on bookmark icon. Connect to Services Connect to personal services for more relevant search results across services. contact | privacy policy | terms of use © 2014-15 recalll × Modal header Body... Close Save
program exception occurred in the main ThumbsPlus process. This is most likely the result of a program bug. This type of exception will cause ThumbsPlus to terminate. You will need to restart ThumbsPlus. You can generate (and email http://www.cerious.com/sp/manual45/tp45man-2737.html to Cerious Software: support@cerious.com) a technical support log, which includes detailed information about this error, by running ThumbsPlus again and pressing Ctrl+Alt+Shift+E. 5001 Out of memory! ThumbsPlus was unable to allocate the amount of http://blog.smartbear.com/api-testing/creating-your-own-teststeps-in-soapui/ memory required to do the function you selected. There are several things you can do to make more memory available: Close (rather than minimize) any applications that you aren't using. Close any ThumbsPlus view windows error unable which are open. You can increase the amount of virtual memory that is available for programs under Windows. Please refer to your Windows documentation or the on-line help for information. If all else fails, you can buy more memory! If the problem seems unrelated to actual memory usage on your machine, please report it to Cerious Software technical support. 5002 Error creating child window! ThumbsPlus failed during initialization or re-initialization error unable to to create a necessary window (i.e., the thumbnail view, the folder tree, the toolbar, etc). This is a fatal error. ThumbsPlus will exit. The only known causes are insufficient or corrupted memory. Restart Windows and try again. 5003 Error creating dialog box! ThumbsPlus could not create a dialog box for the selected function. Possible reasons for this error are: The Windows system is hosed and needs to be restarted. Memory or resources are very low, so Windows should be restarted. The executable file: THUMBS.EXE is corrupt and needs to be reinstalled after running SCANDISK. 5004 Error registering window class for toolbar! ThumbsPlus could not create the toolbar. Your system may be low on memory or resources. Restart Windows and try again. 5005 Error registering thumbnail view control: TPVIEW.OCX! ThumbsPlus cannot register its thumbnail view control for use in displaying thumbnails. See error 5003 for possible reasons and solutions. 5006 Error loading keyboard accelerators. This error is reported during startup if ThumbsPlus cannot access the keyboard accelerator tables in the resource. THUMBS.EXE is most likely damaged, or your system is very low on memory (see error [5001]). 5007 Error loading resource id:
API Testing SoapUI LoadUI For Performance Testing LoadUIWeb LoadUI AQTime News & Events Tech News Upcoming Events News Releases Community Forums FAQs Screencasts About Us Authors Our Team Our Customers Contact SmartBear SmartBear.com Creating your own TestSteps in soapUI January 30, 2012 by Ole Lensmar 44 Comments This time around let's do something really low-level and useful: use the soapUI extensions mechanisms to create a custom TestStep for sending an email during the execution of a TestCase. Since we have quite a lot of ground (and code!) to cover, let's get started. Short Overview soapUI internally uses a number of registries containing factories for core objects, for example TestSteps, assertions, desktop panels etc. (see Custom Factories for an extensive list). To create a custom TestStep, we therefore need to supply at least one factory: that for creating the TestStep itself - a TestStepFactory. Additionally (but not required) since we also want to provide a nice panel inside soapUI for editing the actual email and related properties we need to provide another factory for creating the PanelBuilder that creates this editor panel - a PanelBuilderFactory. soapUI makes heavy use of the apache XMLBeans framework for holding configurations for internal objects - these are generated from the soapui.xsd file included in the soapUI source code. You will see how the state of our TestStep is read and written to objects created for this purpose a bit further down. Confusing? Don't worry - and to be honest, looking at this code that has been written over the last seven years, there are many things that could have been done differently (and better for sure) - bear with us! 1. Create and register the TestStep Factory and TestStep class As mentioned, the TestStep itself is created by a TestStepFactory - a WsdlTestStepFactory to be exact (legacy naming…) - here it is: public class EMailTestStepFactory extends WsdlTestStepFactory { private static final