XML 74 R59.htm IDEA: XBRL DOCUMENT
v3.7.0.1

DERIVATIVE FINANCIAL INSTRUMENTS (Details) - Schedule of Gains or Losses of Derivative Financial Instruments - USD ($) $ in Thousands | 12 Months Ended
--- | ---
Jan. 31, 2017 | Jan. 31, 2016
Schedule of Gains or Losses of Derivative Financial Instruments [Abstract] |  |
Cost of sales | $ (2,131) | $ (382)

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

X
- Definition The amount of the cost of sales reported by an equity method investment of the entity. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 323 -SubTopic 10 -Section 50 -Paragraph 3 -Subparagraph (c) -URI http://asc.fasb.org/extlink&oid=66011266&loc=d3e33918-111571 Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 205 -SubTopic 20 -Section 50 -Paragraph 7 -URI http://asc.fasb.org/extlink&oid=64827811&loc=SL51721683-107760 + Details
Name: | us-gaap_EquityMethodInvestmentSummarizedFinancialInformationCostOfSales
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration