I`m experiencing some difficulty to accomplish this task... I Have a Model called Contract, this model has an attribute called sequence that represents the contract sequence number, my question is: how can i get the interval between two typed numbers in a view with this single attribute?
Model
class Contract < ActiveRecord::Base
validates_presence_of :sequence
validates_uniqueness_of :sequence
end
thanks in advance.
Ps: I was thinking about to create two distinguished inputs to receive the numbers... the questions is: how in the controller or model I create the loop for that!?