I am new to rails - any help would be much appreciated.
- I have a list of created job
adverts Advertis a model- In the schema
Advertis a table with the columnstitle,content&deadline - I would like to only display
adverts whose deadline are '= or >' than Date.current(active adverts)
Unfortunately I am unsure how to do it. I tried the below in the console:
active_adverts = Advert.where(:deadline > Date.current)
Could one kindly advise me on how to display adverts that have a deadline greater than the current date?