I saw a couple of questions on this issue, but could not solve them ...
I am trying to pass a parameter while rendering partial (similar to domainname.com/memory_books/new?fbookupload=yes)
I'm using this line right now:
<%= render :partial => '/memory_books/new', :fbookupload => "yes" %>
and in part I tried to get the contents of fbookupload with:
<%= fbookupload %>
which throws an error "undefined local variable" and
<%= params.inspect %>
which does not show fbookupload as a parameter.
How to get partial pass by parameter: fbookupload?
Thanks.
UPDATE:
Could this have anything to do with the fact that I'm rendering this inside a render?
i.e. page (/ fbookphotos / show) with
<%= render :partial => '/memory_books/new', :fbookupload => "yes" %>
displayed by another page with (messages / shows) via:
<%= render :partial => '/fbookphotos/show' %>
so I'm rendering this in a render.
user749798
source share