Trying to debug some asset tag helper issues and I found this...
Did you know you can call helpers directly in the rails console? Just use the helper object...
>> helper.link_to "this", "that"
=> <a href="that">this</a>
You can also call custom helpers (from your app), but I haven't tried it:
>> helper :my_custom_helper
Saturday, March 15, 2008
Subscribe to:
Post Comments (Atom)
2 comments:
thanks! that helped a lot
you can even "extend them in":
helper.extend your_desired_helper
Post a Comment