XML 72 R57.htm IDEA: XBRL DOCUMENT
v3.7.0.1

DERIVATIVE FINANCIAL INSTRUMENTS (Details) bu in Millions | Jan. 31, 2017 USD ($) bu | Jan. 31, 2016 bu
--- | --- | ---
Disclosure Text Block Supplement [Abstract] |  |
Quantity Of Bushels Under Commodity Futures | 0.7 |
Quantity of Bushels under Forward Purchase Contract | 5.3 | 0.7
Debt Instrument, Collateral Amount (in Dollars) | $ | $ 131,000 |

X
- References No definition available. + Details
Name: | rex_QuantityOfBushelsUnderCommodityFutures
Namespace Prefix: | rex_
Data Type: | num:volumeItemType
Balance Type: | na
Period Type: | instant

X
- Definition Quantity of bushels under forward purchase contract. + References No definition available. + Details
Name: | rex_QuantityOfBushelsUnderForwardPurchaseContract
Namespace Prefix: | rex_
Data Type: | num:volumeItemType
Balance Type: | na
Period Type: | instant

X
- Definition Amount of assets pledged to secure a debt instrument. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 942 -SubTopic 470 -Section 50 -Paragraph 3 -Subparagraph (d) -URI http://asc.fasb.org/extlink&oid=75038535&loc=d3e64711-112823 + Details
Name: | us-gaap_DebtInstrumentCollateralAmount
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- References No definition available. + Details
Name: | us-gaap_DisclosureTextBlockSupplementAbstract
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration