Displaying 1 result from an estimated 1 matches for "planned_meals".
2012 Mar 31
0
Missing Template Error on render_to_string - Rails 3.2.2
Hi,
I''m trying to execute some javascript in the browser after completing
my create action in the controller. Here''s how I''m doing it:
In my controller:
def create
# exectue some code
js = render_to_string(:layout => false, :template =>
"planned_meals/meal.js.coffee.erb")
render :js => js
end
Two questions:
1) Am I going about it the right way? Should I be rendering the js
differently?
2) WIth this implementation, everything works great, but I''m getting
the following deprecation warning:
"DEPRECATION WARNING: Passin...