Refactor
:my
=>
'code'
Codes
Refactorings
Popular
Best
Submit
Spam
Account
Logout
Login
JavaScript doesn't seem to be activated, expect things to be ugly and sloppy!
Learn How to Create Your Own Programming Language
createyourproglang.com
Recent
Parsing of XML data has high CPU usage
Convert simple Javascript to jQuery plugin
Active Record getting unique records
List the files in a directory without the directory name or the extension
clean the code
ohs system, recruitment software, hr software, oh&s software, human resources software, ohs software
Array parsing in a block
Learning JS
Type Safety
Euler Problem 2 solution
Popular
Parsing of XML data has high CPU usage
List the files in a directory without the directory name or the extension
Convert simple Javascript to jQuery plugin
Active Record getting unique records
Breadth first cartesian product iterator
php refactoring
first BST
Learning JS
Too many if statements
clean the code
Pastable version of
Action Mailer - It has to be easier?
<pre class='prettyprint' language='ruby'>class FormMailer < ActionMailer::Base def contact_us(params) from params[:email] recipients params[:to] subject params[:subject] body :params => params end def help_request(params) from params[:email] recipients params[:to] subject params[:subject] body :params => params end def service(params) from params[:email] recipients params[:to] subject params[:subject] body :params => params end def customer_care(params) from params[:email] recipients params[:to] subject params[:subject] body :params => params end def tellafriend(params) from params[:from_email] recipients params[:friend_email] headers 'Disposition-Notification-To' => params[:from_email] if params[:notify] == 'yes' subject params[:subject] body :params => params end # snip... 20 more end</pre> <a href="http://www.refactormycode.com/codes/246-action-mailer-it-has-to-be-easier" style="color:#fff" title="As seen on RefactorMyCode.com"><img alt="Small_logo" src="http://www.refactormycode.com/images/small_logo.gif" style="border:0" /></a>