22 Mar '13, 2pm

Tips for writing your own #Rails engine Old post, good ideas.

Tips for writing your own #Rails engine Old post, good ideas.

Tips for writing your own Rails engine While converting Clearance to a Rails engine was easy, once we were there, we found it wasn’t Valhalla. We fixed the bugs while using the engine internally on a few apps. Here are the lessons we learned. Keep them in mind if you’re thinking of writing your own engine. Routes precedence As developers, we want routes in our app to take precedence over routes in the engine . That is not the default behavior. To get around that, we came up with this hack. (credit to Nick Quaranto, a.k.a. qrush a.k.a. Internbot) class ActionController::Routing::RouteSet def load_routes_with_clearance! clearance_routes = File.join(File.dirname(__FILE__), *%w[.. config clearance_routes.rb]) unless configuration_files.include? clearance_routes add_configuration_file(clearance_routes) end load_routes_without_clearance! end alias_method_chain :load_routes!, :cl...

Full article: http://robots.thoughtbot.com/post/159805560/tips-for-writ...

Tweets

has_many :bugs, :through => :rails

m.onkey.org 22 Mar '13, 10pm

has_many :bugs, :through => :rails Using ruby-debug with Pow Published over 1 year ago After moving to Sam Stephenson’s aw...

10 Tips For A More Effective Paid Search Campai...

searchengineland.com 22 Mar '13, 9pm

Chances are, if you’re reading this you’re either running a cost-per-click (CPC) advertising campaign or are considering i...

Conserve water in the garden, only use it when needed.

Conserve water in the garden, only use it when ...

epa.gov 23 Mar '13, 7pm

Develop healthy soil. Make sure your soil has the right pH balance, key nutrients, and good texture. You can buy easy-to-u...

Git-subtree and Rails

rubyflow.com 28 Mar '13, 9am

Git-subtree and Rails Posted by alexandrov on March 28, 2013 — 0 comments I just wrote about how we used git-subtree to sh...

Rails date method distance_of_time_in_words

api.rubyonrails.org 31 Mar '13, 2pm

:use_month_numbers - Set to true if you want to use month numbers rather than month names (e.g. "2" instead of "February")...

Writing new firmware for a handheld radio

Writing new firmware for a handheld radio

hackaday.com 22 Mar '13, 9pm

When playing around with a cheap, handheld, dual-band radio, [Lior], a.k.a. [KK6BWA], found a schematic for a similar and ...

[Rails]migrationで複数のALTER文を1回にまとめる方法 / “has_man...

m.onkey.org 27 Mar '13, 2am

Bulk ALTER TABLE with Rails 3 and MySQL Published about 2 years ago With this commit , Rails migrations will support addin...

Tips in Setting Up Product Listing Ads

Tips in Setting Up Product Listing Ads

searchenginejournal.com 21 Mar '13, 4pm

Setting up PLA’s in this way will take a lot of the guessing work out of it, you can control bids at a sku level so that y...

Diary of a Rails rescue project

everydayrails.com 22 Mar '13, 4am

Rescue projects are unique challenges. Chances are, you’re working with someone else’s code. (Or maybe you’re working with...

Current status: #RailsForZombies #rails3

railsforzombies.org 28 Mar '13, 12am

1 Intro 2 Learning about database tables 3 Reviewing Ruby Hashes 4 Creating new Tweets 5 Reading out of the database 6 Upd...

7 Tips for Looking Good for Webcam/Google Hangouts [Creator's Tip #83]

7 Tips for Looking Good for Webcam/Google Hango...

reelseo.com 21 Mar '13, 4pm

Looking good on a webcam requires a little forethought, mainly because your webcam is going to be limited in what it can c...

发现http://t.co/RZQrp2dhk6的index里没有 A Guide to Te...

edgeguides.rubyonrails.org 24 Mar '13, 3am

Testing support was woven into the Rails fabric from the beginning. It wasn't an "oh! let's bolt on support for running te...

Remember when was basically the only info on le...

weblog.rubyonrails.org 23 Mar '13, 10pm

John McCreesh has published a great new 30+ paged tutorials for getting started with Rails entitled Four Days on Rails. Ra...