The Ruby on Rails and ClojureScript experts

May 21, 2012

Some neat Rails console tricks:

  • Find the definition of a method: Project.instance_method(:trash).source_location
  • Render a route: app.edit_user_path(@user)
  • Test a helper: helper.truncate(“Testing”, :length => 4)

Link: Three quick Rails console tips – (37signals) via 37signals.com