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
| = form_for quoted_ware do |f| | |
| - quoted_ware.milestones.each do |milestone| | |
| = f.fields_for :milestones, milestone do |milestone_fields| | |
| = milestone_fields.text_field :name |
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
| def name | |
| - first_name + " " + last_name | |
| + "#{first_name} #{last_name}" | |
| 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
| def create_upload_file(options = {}) | |
| if options[:file] | |
| options = { | |
| "content_type" => "tmp", | |
| "size" => File.size?(options[:file].path), | |
| "tempfile" => options[:file], | |
| "original_filename" => options[:file].path.split(File::SEPARATOR).last | |
| }.merge(options) | |
| elsif options[:data] && options[:file_name] | |
| options = { |
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
| Provider.in_groups_with_index do |group, index| | |
| print index | |
| group.each do |ware| | |
| ware.index | |
| end | |
| 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
| if defined?(WillPaginate) | |
| module WillPaginate | |
| module ActiveRecord | |
| module RelationMethods | |
| alias_method :per, :per_page | |
| alias_method :num_pages, :total_pages | |
| alias_method :total_count, :count | |
| end | |
| end | |
| 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
| RSolr::Error::Http - 404 Not Found | |
| Error: <html><head><title>Apache Tomcat/6.0.28 - Error report</title><style><!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;}A.name {color : black;}HR {color : #525D76;}--></style> </head><body><h1>HTTP Status 404 - /solr/c6ff6f86cde_m0/update</h1><HR size="1" noshade="noshade"><p><b>type</b> Status report</p><p><b>message</b> <u>/solr/c6ff6f86cde_m0/update</u></p><p><b>description</b> <u>The requested resource (/solr/c6ff6f86cde_m0/update) is not available.</u></p><HR size="1" noshade="n |
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
| #<Notification action: "order_placed", filter_type: nil, email_args: {"order_id"=>"08f1aaf5ad22535685b3b51440b4a9d8", "url"=>"https://pfizer-backoffice.assaydepot.com"}, mailer: "OrderMailer", replication_permissions: {"pfizer"=>"origin", "pfizer-staging"=>"origin"}, user_kind: "User", resolution: "", subject: "[Assay Depot] Order Placed", to: "cpetersen@assaydepot.com", target_server: "pfizer", updated_at: 2012-02-01 17:37:48 UTC, created_at: 2012-02-01 15:21:15 UTC, _id: "ad358489396b05e5aeea4814a4a09ef7", _rev: "2-984dd1ccc1eafe6983215daf2007f2bd", couchrest-type: "Notification"> |
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
| # MySQL. Versions 4.1 and 5.0 are recommended. | |
| # | |
| # Install the MySQL driver: | |
| # gem install mysql | |
| # On Mac OS X: | |
| # sudo gem install mysql -- --with-mysql-dir=/usr/local/mysql | |
| # On Mac OS X Leopard: | |
| # sudo env ARCHFLAGS="-arch i386" gem install mysql -- --with-mysql-config=/usr/local/mysql/bin/mysql_config | |
| # This sets the ARCHFLAGS environment variable to your native architecture | |
| # On Windows: |
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
| module B | |
| def rara | |
| @rara ||= Array.new | |
| end | |
| def rara=(value) | |
| @rara = value | |
| end | |
| 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
| branch = "acme" | |
| # Make a patch file for each branch | |
| .git checkout #{branch} | |
| .git checkout master | |
| .git diff --binary master #{branch} > #{branch}.patch | |
| # Make a new branch | |
| .git branch -D #{branch} | |
| .git checkout -b #{branch} |
NewerOlder