public
Rubygem
Description: Merb Core: All you need. None you don't.
Homepage: http://www.merbivore.com
Clone URL: git://github.com/wycats/merb-core.git
Whoops... no default for display
Yehuda Katz (author)
Sun Feb 03 01:43:49 -0800 2008
commit  7ac709cdd9dfb762a4c85a7e75e287ed25442a02
tree    f7b0f3e41565f32a05b03a7d38e518b644333d29
parent  a10620ba7883b06aed429d3abe05b45fe977c4e4
...
134
135
136
137
 
138
139
140
...
134
135
136
 
137
138
139
140
0
@@ -134,7 +134,7 @@ module Merb::RenderMixin
0
     opts[:template], thing = thing, nil if thing.is_a?(String) || thing.is_a?(Hash)
0
     
0
     # Try to render without the object
0
- render(thing, opts)
0
+ render(thing || action_name.to_sym, opts)
0
   
0
   # If the render fails (i.e. a template was not found)
0
   rescue TemplateNotFound

Comments

    No one has commented yet.