Smart Phone Tools
About ruby on rails, hackintosh, iphone3g and etc.
Monday, May 11, 2009
Rails link_to Previous Page
There is a useful shorthand in Ruby On Rails.
:back
< %= link_to "Back", :back % >
is equivalent to
redirect_to(request.env["HTTP_REFERER"])
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
Blog Archive
►
2010
(3)
►
February
(1)
►
January
(2)
▼
2009
(45)
►
December
(6)
►
November
(2)
►
October
(4)
►
September
(1)
►
August
(1)
▼
May
(4)
Hackintosh X61 (non-tablet) Upgrade to 10.5.7
Rails link_to Previous Page
Rails Autocomplete Plugin
Using ISAPI Rewrite on Rails App with IIS and Mong...
►
April
(4)
►
March
(2)
►
February
(9)
►
January
(12)
►
2008
(6)
►
October
(6)
No comments:
Post a Comment