hey, i know u have in php print_r or echo, so that the browser print the variable on top of page, no matter what what is this in rails?? put doesnt seem to work Thanks Nick
On Wed, 2005-12-21 at 15:56 +0000, Brutyn Nick wrote:> hey, > > i know u have in php print_r or echo, so that the browser print the variable on > top of page, no matter what > > what is this in rails?? put doesnt seem to work >You can use breakpointing, or given @foo: <%= @foo.inspect %> -- -Matthew Beale mixonic-8rZIAEcCR/xWk0Htik3J/w@public.gmane.org :: 607 227 0871 Resume and Portfolio @ http://madhatted.com
i think you are looking for debug http://rails.rubyonrails.com/classes/ActionView/Helpers/DebugHelper.html#M000367 On 12/21/05, Brutyn Nick <brutyn_nick-PkbjNfxxIARBDgjK7y7TUQ@public.gmane.org> wrote:> > hey, > > i know u have in php print_r or echo, so that the browser print the > variable on > top of page, no matter what > > what is this in rails?? put doesnt seem to work > > Thanks > Nick > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >_______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails