Peter Marklund

Peter Marklund's Home

Sat November 11, 2006
Programming

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:

Comments

Joel Junström said over 8 years ago:

Cheeses =)
Sjukt att jag missat reload!

bockar och tackar

--------------------------------------------------------------------------------

Kalid said over 7 years ago:

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

--------------------------------------------------------------------------------

Peter Marklund said over 7 years ago:

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

--------------------------------------------------------------------------------

Peter Marklund said over 7 years ago:

An easier way to test your helpers is to use something like:

MyController.send(:view_class).new.my_helper_method

--------------------------------------------------------------------------------