So… I know about the :locals => { :var1 => @rawr, :var2 => @hello } syntax for partials
but is there a way for me to pass both @rawr and @hello to the partial, so that i don’t need to use var1 and var2?
So… I know about the :locals => { :var1 => @rawr, :var2 => @hello
Share
You can do
:locals => { :rawr => @rawr, :hello => @hello }and then the variables will be available within the partial asrawrandhello.