ruby on rails 4 - Why Isn't 'Puts' Used in Applications? -


i've noticed not many applications have started tutorial's use 'puts' method (not sure if method, or called exactly); however, in tutorial, i'm using learn fundamentals of ruby- used usually, instead?

thanks.

puts method "print to_s", receives object (number, string, etc) tries convert string , print it.

since of ruby apps web rare see being used on these ones, can use variable in html/erb template, used in ruby scripts, rake tasks , other kind of stuff relies on terminal.


Comments

Popular posts from this blog

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

html - How to style widget with post count different than without post count -

url rewriting - How to redirect a http POST with urlrewritefilter -