Displaying 1 result from an estimated 1 matches for "blogshorttext".
2005 Oct 28
1
Actionless self-referential views , logic in my views, yes, but less LOC. One draw back, it dont work.
...r (:partial => "collapsed_blog" , :locals => {:be => be ,
:hide => "yes"}) %>
This above code is in a .rhtml page.
Here is the partial it renders:
<p class=<%="blog_content" + be.id.to_s%>>
<% if hide == "yes" %>
<%= be.blogshorttext %>
<%= link_to_remote ('' [See Full Text ('' + be.wordcount + '')]'',
:update=> ("blog_content" + be.id.to_s),
:url=> {:partial => ''collapsed_blog'' ,:id =>be.id},
:locals =>{:hide => "no"})%>
<...