Thursday, September 24, 2015

Rails related - 'locals'

From http://stackoverflow.com/questions/5255874/rendering-partial-with-locals-in-haml

You would use the :locals option if you're calling render from a controller. When calling render from a view, you would simply do this:
= render 'meeting_info', :info => @info

No comments:

Post a Comment

Followers

Blog Archive