search for: dog_path

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

Did you mean: log_path
2007 Jul 06
1
Edge, link_to and mocks
...using the newer link_to syntax in edge currently fails with mocked objects in view specs or helpers. eg. if you have something like the following in your view (or equivalent in a helper): <%= link_to @dog.name, @dog %> as opposed to the current 1.2 syntax: <%= link_to @dog.name, dog_path(@dog) %> Using a mock_model as the ''dog'' will raise a: undefined method `polymorphic_path'' for [Dynamically generated class for RSpec example]:#<Class:0x26814f4> error - I presume due to the introspection on the @dog object to find out what kind of class...