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
| # == Schema Information | |
| # | |
| # Table name: rfqs | |
| # | |
| # id :integer not null, primary key | |
| # title :string(100) | |
| # quantity :integer | |
| # trim_size_id :integer | |
| # binding_type_id :integer | |
| # pages :integer |
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
| <div id="rfqCol1"> | |
| <% field_set_tag "General" do %> | |
| <div id="firstSet"> | |
| <%= f.text_field :title, :class => 'required' %> | |
| <%= f.text_field :quantity, :class => 'required' %> | |
| <%= form_tip "You may enter more than one quantity above." %> | |
| </div> | |
| <% end %> | |
| <% field_set_tag "Specifications" do %> | |
| <div id="bindingSet"> |
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
| #!/bin/bash | |
| # Unattended script for installing all the stuff I like to install on new machine | |
| if [ "$(whoami)" != "root" ]; then | |
| echo "You need to be root to run this!" | |
| exit 2 | |
| fi | |
| function echo_newline { |
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
| 586) Error: | |
| test_update_should_fail_if_version_invalid(VersionsControllerTest): | |
| NoMethodError: You have a nil object when you didn't expect it! | |
| The error occurred while evaluating nil.each_pair | |
| /usr/lib/ruby/gems/1.8/gems/acts_as_ferret-0.4.4/lib/instance_methods.rb:136:in `to_doc' | |
| /usr/lib/ruby/gems/1.8/gems/acts_as_ferret-0.4.4/lib/instance_methods.rb:128:in `to_doc' | |
| /usr/lib/ruby/gems/1.8/gems/acts_as_ferret-0.4.4/lib/local_index.rb:106:in `<<' | |
| /usr/lib/ruby/gems/1.8/gems/acts_as_ferret-0.4.4/lib/instance_methods.rb:100:in `ferret_create' | |
| lib/user_stamp.rb:19:in `create' | |
| /usr/lib/ruby/gems/1.8/gems/thoughtbot-factory_girl-1.2.2/lib/factory_girl/proxy/create.rb:5:in `result' |
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 ActiveRecord | |
| module UserStamp | |
| def self.included(base) | |
| base.class_eval do | |
| alias_method :create_without_user, :create | |
| alias_method :create, :create_with_user | |
| alias_method :update_without_user, :update |
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
| var People = { | |
| setupIndex: function() { | |
| $$('a.labels').each( function(link) { | |
| link.onclick = function(ev) { | |
| ev.stop(); | |
| $$('tr.mistasks').each( function(row) { | |
| if (!(row.classNames.include(link.id))) { | |
| row.hide(); | |
| } | |
| }); |
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
| <h1>MIS Tasks</h1> | |
| <p>The following are features scheduled to be implemented, not including bugs, nor features placed on the back-burner.</p> | |
| <p> | |
| <% @labels.each do |l| -%> | |
| <%= link_to l, "##{l}", :id => "#{l}", :class => "labels" %> | |
| <% end -%> | |
| </p> |
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
| should "timestamp the file name before creation" do | |
| upload = Factory.build(:upload, :its_file_name => 'a_file') | |
| before_filename = upload.its_file_name | |
| upload.save | |
| assert before_filename != upload.its_file_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
| # @tickets is an array of ActiveRecord objects | |
| # The numbers against which the timeframe_id is getting checked | |
| # correspond to IDs for specific timeframes in the database | |
| # FIXME: Do not leave this in the controller. | |
| @emergency = @tickets.select {|t| t.timeframe_id == 1} | |
| @four_hours = @tickets.select {|t| t.timeframe_id == 2} | |
| @next_bd = @tickets.select {|t| t.timeframe_id == 3} | |
| @two_days = @tickets.select {|t| t.timeframe_id == 4} | |
| @week = @tickets.select {|t| t.timeframe_id == 5} |
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
| <%# Total number of tickets for this customer by time frame -%> | |
| <table> | |
| <thead> | |
| <tr> | |
| <th>Timeframe</th> | |
| <th>Opened</th> | |
| <th>Closed</th> | |
| </tr> | |
| </thead> | |
| <tbody> |