2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2020

02/09/2010: Heroku Tip; Use a Ping or Uptime Service As a Cron Job.

This is a pass-along tip from Toby Hede (http://stackoverflow.com/users/14971/toby-hede) on StackOverflow. Just give the Ping service the URL of the controller doing the work instead of your root page.

02/09/2010: Rails Tip - How Do I See Params From My Forms?

I like to document what my forms are sending to my action methods. So most of the time, I create a method in my controller like this:
def to_export
  render :text => params.inspect
end
Then I use copy and paste to put the result into my code as a comment.
# {
#   "commit"=>"Upload File",
#   "authenticity_token"=>"17FvBH+Z4Meni6WvsCdPByrrk751BV9mNklzKDAo2Vc=",
#   "action"=>"do_import",
#   "import_criteria"=>{
#     "primary_language_name"=>"Creole",
#     "secondary_language_name"=>"English"
#   },
#   "form"=>{
#     "file"=>"traveling_haiti.txt"
#   },
#   "controller"=>"import"
# }