search for: available_types

Displaying 2 results from an estimated 2 matches for "available_types".

2006 May 20
1
RJS returned javascript written straight to page
...page.insert_html :bottom, "script", :partial => ''films/form/personnel'', :locals => { :type => @params[:type].gsub(/_/, ""), :available_types => @credit_types.select { |ct| ct.personnel_type == @params[:type] }, :personnel => p } page.visual_effect :highlight, @params[:type].gsub(/_/, ""), end end whenever I use this, the generated java...
2007 Jul 05
6
mocking methods in the controller.
Hi, I''m very new to rspec so please be patient with me. I''ve tried to take some of my tests out of the controller specs to check for things that are rendered. This has not worked so well, since my views have the controller method current_user in quite a few places. Is there any way that I can define this so that my views will be executed? Will this same thing occur for all