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