09 May '13, 4pm

"Leave your migrations in your Rails engines" by Ben Smith

If you are using Rails engines to break up a single app into modular pieces, migrations (as they are currently implemented in Rails 3.2.13) become clumsy. There are three options for migrations within an engine (spoiler: #3 is the best): 1) You can use the your_engine_name:install:migrations rake task, which copies the migrations out of the engine and into the wrapping Rails app where they can be run normally. This works fine if your migrations in your engine never change, but if you’re actively developing your engine you need to run this rake task each time you add a migration. 2) You can put all your migrations in your wrapping Rails app. This works if you’re using your engines as a way to break up your app, but it doesn’t feel right. If your models, views, and controllers all live within the engine (and depend on migrations), shouldn’t your migrations live within the en...

Full article: http://pivotallabs.com/leave-your-migrations-in-your-rail...

Tweets

SEO-friendly single-page apps in Rails via @piv...

pivotallabs.com 10 May '13, 12am

To make all this process as simple as possible, a variation of the third approach (Rack middleware + Selenium Webdriver + ...

just ran into the "sexy migration" Rails termin...

guides.rubyonrails.org 22 May '13, 1am

In general editing existing migrations is not a good idea: you will be creating extra work for yourself and your co-worker...

10 Mistakes Every Startup Should Avoid When Opt...

searchenginejournal.com 09 May '13, 11am

Search engines are still the number one place people turn when they want to learn something new or solve a problem. If you...

Rails AntiPatterns: Best Practice Ruby on Rails...

twitter.com 11 May '13, 11am

Rails AntiPatterns: Best Practice Ruby on Rails Refactoring http://www. it-ebooks.com/html/Programmi ng/Rails_AntiPatterns...

Even If Yahoo Wants To Leave Microsoft, Here’s ...

searchengineland.com 07 May '13, 11pm

Despite effectively renewing its search deal with Microsoft recently, the Wall Street Journal is reporting that Yahoo want...

How My Mom Thinks Search Engines Work

How My Mom Thinks Search Engines Work

seomoz.org 13 May '13, 10am

With Mother’s Day in many countries having just passed (I learned this week that the UK celebrates Mothering Sunday earlie...

Football: Manager Moyes to leave for Man Utd - Everton

Football: Manager Moyes to leave for Man Utd - ...

channelnewsasia.com 09 May '13, 2pm

LONDON: Everton confirmed on Thursday that manager David Moyes will leave the club at the end of the season, paving the wa...