Hello champs, I have been writing a functional test in which i create a new record and finds out that the record is porperly created or not. So i do it like this:- def test_should_create_record assert_difference(''ABC.count'') do post :method_name, :abc => { :name => "Abc", :email => "abc-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org", :phone => "+91234567899" } assert_equal "Please select abc first", flash[:notice] end end IN development, if i create any record with these parameter, it gets created. But IN test phase, it is giving me error that :: --- ActionView::MissingTemplate: Missing template abc/method_name.erb in view path app/views --- How to tackle with it.. ? By request.env[''HTTP_REFERER''] or what .. ? -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.