Gamecreatures' Development Blog

Software Development Adventures

Main menu

Skip to primary content
Skip to secondary content
  • Home
  • About

Daily Archives: 29 January, 2008

Using the h method in a controller / model

Posted on 29 January, 2008 by admin

The h method you use in a Ruby on Rail View, isn’t available in a model or in a controller.
That’s very frustrating. An alternative method to use is:


CGI::escapeHTML( string_to_escape )

share!
Posted in rails | Tagged rails, ruby

Calendar

January 2008
M T W T F S S
« Dec   Feb »
 123456
78910111213
14151617181920
21222324252627
28293031  

Archives

  • December 2011 (1)
  • November 2011 (1)
  • October 2011 (1)
  • September 2011 (3)
  • August 2011 (5)
  • July 2011 (1)
  • September 2009 (1)
  • August 2009 (1)
  • November 2008 (2)
  • June 2008 (1)
  • May 2008 (2)
  • April 2008 (1)
  • March 2008 (1)
  • February 2008 (1)
  • January 2008 (4)
  • December 2007 (2)
  • September 2007 (4)
  • August 2007 (15)
  • July 2007 (13)

Tags

actionscript ajax ansi apache blog book calendar constants date eclipse flash freebsd httpd ie iis java javascript less libhttpd linux locking mantis microsoft mssql mysql objects php prototype rails rexml rsync ruby shell sourceforge ssh subversion svn table test tools updates webrick windows wordpress xml

Categories

  • apache
  • blog
  • books
  • browsers
  • flash
  • freebsd
  • javascript
  • libhttpd
  • linux
  • misc
  • mysql
  • os x
  • php
  • rails
  • rsync
  • ruby
  • svn
  • windows
  • wordpress

RSS FreeBSD Security

api

  • Got API
  • Haml
  • Prototype API
  • ReXML API
  • Ruby API Refs
  • Sass

frontpage

  • Coffeescript
  • GitHub
  • http://html5boilerplate.com/
  • Mikker.nl
  • Modernizr

Links

  • Java libhttpd

stock-resources

  • FreeSounds
  • Sock XCHNG

tools/windows

  • grepWin
  • Powermenu
  • Scite Tools
  • StExBar
Proudly powered by WordPress