I have such AR code:
@types = Type.find(:all,
:conditions => { :TYP_MOD_ID => params[:models],
:TYP_PCON_START => params[:year] },
:order => "TYP_HP_FROM")
but how can i do that i see TYP_PCON_START without first 2 symbols and compare?
for example :TYP_PCON_START.to_s[4...6]
Also i need to compare not =, but >= > condition. How to do this?
Use
whereinstead offind. Also i didn’t understand what you mean byhow can i do that i see TYP_PCON_START without first 2 symbols and compare?.