Displaying 2 results from an estimated 2 matches for "words_controller".
Did you mean:
cards_controller
2011 Feb 23
5
Routing problem
In my app i have word model, words_controller and want create new
action for word model.
I create new method ''test'' in words_controller, and adds:
resources :words do
member do
put ''test''
end
end
in routes.rb
my rake routes output:
test_word PUT /words/:id/test(.:format) {:action=>&quo...
2009 Jan 20
5
Problem running rake test
...s/1.8/gems/rake-0.8.3/lib/rake/
rake_test_loader.rb:5:in `each''
from C:/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake/
rake_test_loader.rb:5
C:/Ruby/bin/ruby -Ilib;test "C:/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.3/
lib/rake/rake_test_loader.rb" "test/functional/admin/words_controller
_test.rb" "test/functional/words_controller_test.rb"
C:/Ruby/lib/ruby/1.8/erb.rb:469:in `scan'': You have a nil object when
you didn''t expect it! (NoMethodError)
You might have expected an instance of Array.
The error occurred while evaluating nil.empty?
from...