15 Feb '12, 3pm

Wildcards in Rails redirects

February 15, 2012 Tagged: Google Analytics customer acquisition rails kissmetrics yesterday i learned Comments (View) Wildcards in Rails redirects The captured wildcard in a Rails 3 route can be used in the redirect method: match 'via/:source' => redirect('/?utm_source=%{source}') This example is intended to improve metrics for customer acquisition campaigns. utm_source is for Google Analytics, which KISSMetrics logs as Ad Campaign Hits . The URLs are now friendlier for sharing: /via/email /via/twitter /via/search-ads /via/blog-ads When the user clicks them, they’ll be redirected to: /?utm_source=email /?utm_source=twitter /?utm_source=search-ads /?utm_source=blog-ads The URLs are also encapsulated. If the Google Analytics params need to change, the developer can edit config/routes.rb and deploy. All past routes will still work.

Full article: http://robots.thoughtbot.com/post/17658146816/wildcards-i...

Tweets

Tour « Open Source E-Commerce for Ruby on Rails:

Tour « Open Source E-Commerce for Ruby on Rails:

spreecommerce.com 21 Feb '12, 5pm

Now your store can look the way you always wanted Customization is a quick and easy process. Spree is designed to run in a...

@nzkoz Is this doc part of Rails? The save meth...

ar.rubyonrails.org 17 Feb '12, 7pm

Guesses the table name (in forced lower-case) based on the name of the class in the inheritance hierarchy descending direc...

if you're a rails developer, you really need to...

api.rubyonrails.org 27 Feb '12, 1pm

macro: Mass-assignment will only set attributes in this list, to assign to the rest of attributes you can use direct write...

A few thoughts on what I would like to see in R...

rubyflow.com 14 Feb '12, 4pm

A few thoughts on what I would like to see in Rails 4.0 Posted by jlebrech on February 14, 2012 — 0 comments This is my wi...

offline docs for Rails v 3.1.3 an...

rubyflow.com 15 Feb '12, 11pm

Railsapi.com offline docs for Rails v 3.1.3 and 3.2.1... Posted by phallstrom on February 15, 2012 — 0 comments If you lik...

Ruby on Rails developer: Martin Aceto from Arge...

workingwithrails.com 14 Feb '12, 11pm

Available for hire Martin Aceto Aliases MAceto Location Argentina , Capital Federal Company Backing S.A. , Buenos Aires - ...

A Fresh Cup:What's New in Edge Rails #9

afreshcup.com 20 Feb '12, 11am

is Mike Gunderloy's software development weblog, covering Ruby on Rails and whatever else I find interesting in the univer...

Rails

guides.rubyonrails.org 17 Feb '12, 9am

These are the new guides for Rails 3.2 based on v3.2.1 . These guides are designed to make you immediately productive with...

Ruby on Rails Guides: Getting Started with Rails

guides.rubyonrails.org 19 Feb '12, 6pm

Rails is a web application development framework written in the Ruby language. It is designed to make programming web appl...

@railsforzombies

railsforzombies.org 14 Feb '12, 9am

Rails for Zombies - Learn Rails the Zombie Way Introducing an all new way to learn Ruby on Rails in the browser with no ad...

@gilesgoatboy

@gilesgoatboy

gilesbowkett.blogspot.com 23 Feb '12, 10pm

We use a bizarre, convoluted mechanism for attaching ClassMethods and InstanceMethods modules to ActiveRecord::Base becaus...

Nuby on Rails | Ruby on Rails for Newbies

Nuby on Rails | Ruby on Rails for Newbies

nubyonrails.com 26 Feb '12, 6pm

One skill that is important is being able to respond to change. I frequently think back to a quote I saw in a skateboardin...

git-rails – Tools for using git with #Ruby on #...

nanorails.com 13 Feb '12, 3am

git-rails – Tools for using git with Ruby on Rails by Pascal on February 5, 2008 in git-rails Git-Rails git-rails is a sim...

About This Blog: Memcached | Ruby on Rails for Newbies:

About This Blog: Memcached | Ruby on Rails for ...

nubyonrails.com 22 Feb '12, 1am

I’ll add to this and say that every beginning Rails developer should write their own blog software. It’s a great learning ...