rails skip records that are addressed by named scope -


I have an area where one section is used to narrow down the results where a specific parameter is defined as.

Posted in RB

  area: nav, where ("not priority")  

This opportunity is being used to access this site. Navigation with, however, indicator controller action requires the release of these records. Is there any way that I can use the same designated area to drop these records with my nomination action? Or do I need to write another scope, which is the inverse of the previous one?

  DIF index @posts  

Post. RB

  area: nav, - & gt; (Not_null = true) {Not Null? where. No (priority: zero): where (priority: zero)}  

in the controller:

  DIF index @ posts = post.order (created < / P> 


Comments

Popular posts from this blog

sqlite3 - UPDATE a table from the SELECT of another one -

c# - Showing a SelectedItem's Property -

javascript - Render HTML after each iteration in loop -