search for: my_own_data

Displaying 1 result from an estimated 1 matches for "my_own_data".

2007 Sep 12
8
Can not ''assigns'' value in View test
...} render :partial=>''index'', :layout=>false, :locals=>{:hash=>hash} end end _index.rhtml ......#unrelated code omitted <script> var data = <%= hash %>; <!-- process data here --> </script> In my spec, I used assigns[:hash] = my_own_data, but an error occurred, saying that "undefined local variable or method ''hash'' ". How can I assign my own data to hash in my view spec? Thank you! -- View this message in context: http://www.nabble.com/Can-not-%27assigns%27-value-in-View-test-tf4428018.html#a12631788 S...