I love it!
First trip to find my long-lost brother
I found him, we took photo....
Some people don't know what a debugger is.
These books don't say much about debuggers...
Started GET "/posts" for 127.0.0.1 at 2012-06-19 11:32:16 -0400 Processing by PostsController#index as HTML Post Load (0.4ms) SELECT "posts".* FROM "posts" Rendered posts/index.html.erb within layouts/application (11.9ms)
<% @posts.each do |post| %> <tr> ... <td><%= post.user %></div> <td><%= post.text %> <td><%= link_to 'Show', post %>
$ rails console Loading development environment (Rails 3.0.9) :001 > post = Post.find(:first) => #<Post id: 1, user: "rocky", text: "hallo semua!"...> :002 > post.text => "hallo semua!" :003 > link_to('Show', post) NoMethodError: undefined method `link_to' for main:Object
<% @posts.each do |post| %> <tr> ... <td><%= post.user %></div> <td><%= post.text %> <td><%= debugger; link_to ... %>
link_to can be found
and stepped into: show this
Some of these originated with ruby-debug
Note: if you have ruby-debug installed you can also install trepan8