I am following the Ruby on Rails tutorial and have come across a problem while trying to pass variables to partials.
My _user partial is as follows
_user
Syntactically a little different but it looks cleaner in my opinion:
render 'my_partial', locals: { title: "My awesome title" } # not a big fan of the arrow key syntax render 'my_partial', :locals => { :title => "My awesome title" }