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
### | |
Twitter Bootstrap compatible pagination view. | |
Relies on an ArrayController being in place that implements | |
refreshData(page_num) | |
### | |
# Names of previous and next buttons can be adjusted: | |
PREV = "Prev" | |
NEXT = "Next" |
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
<ShipmentInformation> | |
<ShipperNumber>#####</ShipperNumber> | |
<ServiceType>GND</ServiceType> | |
<NumberOfPackages>1</NumberOfPackages> | |
<BillingOption>PP</BillingOption> | |
<QVNOption> | |
<QVNRecipientAndNotificationTypes> | |
<EMailAddress>[email protected]</EMailAddress> | |
<Ship>Y</Ship> | |
<Exception>Y</Exception> |
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
# config/initializers/active_record.rb | |
# Loads the monkey patch. | |
require 'active_record' | |
require 'active_record/schema_dumper' | |
require 'schema_dumper' | |
ActiveRecord::SchemaDumper.class_eval do | |
include Nepco::SchemaDumper | |
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
# This is just a basic sample of a controller needed to work with popups.js | |
class AddressesController < ApplicationController | |
before_filter :load_addressable | |
def new | |
@address = @addressable.addresses.build(:name => params[:name]) | |
render :partial => 'form' | |
end | |
NewerOlder