ruby - What's a good way to test 'link_to' and other view helpers from the rails console? -


i use rails console lot , wondering best way test view helpers such 'link_to' or 'url_for' using it.

what's best way this?

just include urlwriter module in console:

include actioncontroller::urlwriter


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -