search for: article_link

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

Did you mean: article_linux
2006 Jul 31
0
problems testing helpers - link_to and url_for don''t work...
...work for cases where a helper does anything related to link_to/url_for, and this includes calling named_routes. This is obviously an issue, as a common use for helpers is to refactoring something like this: <%= link_to "text that changes slightly", :id => id %> to this <%= article_link "text", id, other_options %> using a helper. That example is a over simplified, but you get the idea. Just moving duplicated links to a helper to keep things dry. The issue seems to be that the controller is always nil by the time url_for gets call in ActionController::Base - so so...