XML 44 R64.htm IDEA: XBRL DOCUMENT
v2.4.0.8

Related-Party Transactions (Details) (USD $) In Millions, unless otherwise specified | 6 Months Ended | 3 Months Ended
--- | --- | ---
Jul. 31, 2013 | Jul. 31, 2012 | Jul. 31, 2013 One Earth Energy [Member] | Jul. 31, 2012 One Earth Energy [Member]
Related-Party Transactions (Details) [Line Items] |  |  |  |
Related Party Transaction, Purchases from Related Party | $ 150.4 | $ 120.9 | $ 78.7 | $ 64.4

X
- Details
Name: | rex_RelatedPartyTransactionsDetailsLineItems
Namespace Prefix: | rex_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Purchases during the period (excluding transactions that are eliminated in consolidated or combined financial statements) with related party. + References No definition available. + Details
Name: | us-gaap_RelatedPartyTransactionPurchasesFromRelatedParty
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration