Presenters in Rails Without presenter View <h1>@post.title</h1> <span>@post.publication_status</span>
squash and commit $ git checkout master $ git merge --squash release_branch $ git commit -m 'sprint #42' $ git log $ git push origin master
scope for find no relation class User < ActiveRecord::Base scope :without_tweet, -> { where.not(id: Tweet.select(:user_id).uniq) } end
How to Nested Let's imagine we want to assign pokemons to trainers. We are creating a new_trainer form with checkboxes for each pokemon and their names next a checkbox to assign them to this new trainer, like this: Salameche