"undefined method `rewrite' for" aka @url considered harmful

“link_to/url_for and related uses the ActionController::Base @url
instance variable to generate URLs, so if you (or plugins you’ve
installed) clobber it somehow, you’ll get this error.”
Thanks eden li via rails-talk. (for the Rails aware: I have a model named Url, so go figure how scaffolding named the instance variables in the associated controller :P )

Technorati Tags:

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Lines and paragraphs break automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.