With
> rails console --sandbox
I cant test my models, save data to db and all will be rolled back
after.
But is it possible to test view helpers from console? I talk about these
helpers:
> post_path
> link_to
> url_for
> edit_post_path
> new_post_path
When I call them, I get an error:
irb(main):003:0> post_path(:post)
NameError: undefined local variable or method `post_path' for
main:Object
Is there a way to call those methods from Rails console? Through which
object do I need to call them?
--
Posted via
http://www.ruby-forum.com/.