hello,
I’m wondering if there’s a way to do something like : <%=
yield :catchphrase || “default text” %> ?
Thanks.
Nicolas C.
hello,
I’m wondering if there’s a way to do something like : <%=
yield :catchphrase || “default text” %> ?
Nicolas C.
Le 18 janv. 07 à 15:23, Nicolas C. a écrit :
hello,
I’m wondering if there’s a way to do something like : <%=
yield :catchphrase || “default text” %> ?
Nicolas C.
About time someone deprecate <%= @content_for_foo %> too. You should go
<%= yield(:foo) %> instead, and do <% if yield(:foo) %> (or perhaps
unless yield(:foo).empty? Not sure) if you need to check if it has
contents. Yield ftw!
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs