提交 8f712e95 编写于 作者: J Justin Collins

Merge branch 'fix_empty_char_class_error'

......@@ -48,7 +48,9 @@ module Brakeman::RenderHelper
#Processes a given action
def process_action name, args
process_template template_name(name), args
if name.is_a? String or name.is_a? Symbol
process_template template_name(name), args
end
end
#Processes a template, adding any instance variables
......
......@@ -83,6 +83,11 @@ class HomeController < ApplicationController
redirect_to url_for(url)
end
def test_render_a_method_call
@user = User.find(params['user']).name
render :test_render
end
private
def filter_it
......
<h1>Home#test_render</h1>
<p>Find me in app/views/home/test_render.html.erb</p>
<%= render @user %>
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册