Sometimes we need to write small console scripts which do some background processing on our models. In Scribd we are using Loops to run these tasks (check Alexey Kovyrin’s introduction post). One of our scripts supposed to generate some sort of html reports, and we need to generate links to our site there.
Memo #6: Using named routes and url_for outside the controller in Ruby on Rails
Posted by Dmytro Shteflyuk on under Ruby & Rails