Skip to content

Instantly share code, notes, and snippets.

View tight's full-sized avatar

François Delfort tight

View GitHub Profile
@tight
tight / gist:1758913
Created February 7, 2012 10:07
for vs each
i = "foo"
for i in 1..5 do
puts i
j = "bar"
end
i # => 5
j # => "bar"
i = "foo"
(1..5).each do |i|
form_for([job_or_entity, unsolicited_or_job_application], :builder => FrontOfficeFormBuilder, :html => { :multipart => true }) do |f|
...
end
# => <form action="/entities/40598744/unsolicited_applications" class="new_unsolicited_application" enctype="multipart/form-data" id="new_unsolicited_application" method="post">
# et je voudrais ajouter #apply à l'URL
<?php
// lib/form/BaseForm.class.php
/**
* Base project form.
*
* @package peanut
* @subpackage form
* @author Alexandre 'pocky' BALMES
* @version SVN: $Id: BaseForm.class.php 20147 2009-07-13 11:46:57Z FabianLange $