Peter Marklund

Peter Marklund's Home

2006-11-11

Rails script/console - Did you know it could do all this?

Yesterday someone pointed out some features of the Rails console that I had missed out on. Here are some objects and commands to be aware of:

4 comment(s)

Comments

Peter Marklund said 2007-03-26 07:50:

An easier way to test your helpers is to use something like: MyController.send(:view_class).new.my_helper_method
--------------------------------------------------------------------------------

Peter Marklund said 2007-03-26 07:30:

Another great thing about the console that I hadn't been aware of is that it does code completion.
--------------------------------------------------------------------------------

Kalid said 2007-02-17 02:39:

Thanks for the tip about the application helpers! I was looking for just that.
--------------------------------------------------------------------------------

Joel Junström said 2006-11-13 01:18:

Cheeses =) Sjukt att jag missat reload! bockar och tackar
--------------------------------------------------------------------------------