Ryan Bates
Railscasts · Not a member
Ryan Bates's latest activity
Saturday, August 16 2008
-
Ryan Bates commented at 8:46 PMthanks, documentation is planned, just wanted to nail down the functionality first.
-
Ryan Bates commented at 7:14 PMAlso, you could get fancy and yield multiple times for different sections of the layout. For example.
<!-- _comment.html.erb --> before <%= yield comment, :ti... -
Ryan Bates created the ticket at 6:58 PMCurrently it's possible to pass a block to "render :layout" in the view and yield to it. For example:
<!-- _layout.html.erb --> before <%= yield %> end <!-- ...
-
Ryan Bates commented at 12:58 AMAfter a little bit of research I found this commit which appears to be when those two lines were added.
As suspected, this was intended to solve a memory leak....
-
Ryan Bates commented at 12:05 AMIs it possible the two lines were intended to solve a memory leak? That may explain why it doesn't make a noticeable change in behavior. It's a bit beyond me, b...
Friday, August 15 2008
-
Ryan Bates commented at 9:53 PMIt's probably best to fix this for other objects as well.
reflection == Object.new # raises an errorAttached is a patch which ensures the object is a reflec...
-
Ryan Bates commented at 7:08 PMNevermind, found the problem. Attached is an updated patch which also returns nil when nil is passed.
-
Ryan Bates commented at 6:39 PM@RSL, as Damian mentioned you can toss it into a helper. Or you can just render a partial right here.
<%= render(:partial => @records) || render(:partial => '... -
Ryan Bates commented at 4:49 PMCorrection: you'll need to wrap the render call in parenthesis.
<%= render(:partial => @records) || "Nothing found" %>
-
Ryan Bates commented at 4:59 PM@jshumate, sorry for the incorrect assumption. I haven't seen this behavior outside of storing a model globally. Could you post your code or example app somewhe...