Skip to content

Instantly share code, notes, and snippets.

View kiere's full-sized avatar

Kiere El-Shafie kiere

View GitHub Profile
@jessejanderson
jessejanderson / intro-to-otp-in-elixir-resources.md
Last active June 15, 2023 05:03
Intro to OTP in Elixir - Resources
@Unpakt
Unpakt / rails 3.2.11 params patch
Created January 9, 2013 18:54
Put "repair_empty_param_associations" in your before filters in the application_controller.rb
def repair_empty_param_associations
params.keys.each do |key|
repair_nested_params(params, key, params[key])
end
end
private
def repair_nested_params(current_params, key, value)
if key =~ /^(.*)_attributes$/ && value.nil?
@kiere
kiere / tracking_link_helper.rb
Created April 6, 2012 20:59
Shipper Tracking Link Examples