#202
Feb 22, 2010

Active Record Queries in Rails 3

Rails 3 introduces a new query interface for performing finds in Active Record. See how it works along with the changes in named scopes.
Download (17.8 MB, 10:43)
alternative download for iPod & Apple TV (13.7 MB, 10:43)

Resources

# Article.find(:all, :order => "published_at desc", :limit => 10)
Article.order("published_at desc").limit(10)

# Article.find(:all, :conditions => ["published_at <= ?", Time.now], :include => :comments)
Article.where("published_at <= ?", Time.now).includes(:comments)

# Article.find(:first, :order => "published_at desc")
Article.order("published_at").last

# rails console
Article.all
articles = Article.order("name")
articles.all
articles.first
Article.recent.all
puts Article.recent.to_sql

# articles_controller.rb
@articles = Article.order("name")

if params[:hidden]
  @articles = @articles.where(:hidden => (params[:hidden] == "1"))
end

# models/active_record.rb
scope :visible, where("hidden != ?", true)
scope :published, lambda { where("published_at <= ?", Time.zone.now) }
scope :recent, visible.published.order("published_at desc")

RSS Feed for Episode Comments 46 comments

1. Piotr Nowak Feb 22, 2010 at 01:32

Great screencasts, thanks Ryan !


2. elioncho Feb 22, 2010 at 01:46

More enlightenment, thanks Ryan! This new query interface rocks!


3. Kirill Feb 22, 2010 at 02:06

Super !!!


4. QuBiT Feb 22, 2010 at 02:20

Just can't wait for the day when rails3 is released and all gems and plugins are working with rails3.

And of course I'm waiting for the next Railscast ^^


5. Branden Feb 22, 2010 at 03:00

I was waiting for this one to come with the new Rails 3 casts you are pumping out. Arel rocks :)

Thanks Ryan.


6. Antonin Feb 22, 2010 at 03:24

best The best


7. Jeremy Chase Feb 22, 2010 at 05:02

Nice introduction.. Thanks for covering the Rails3 changes; it is a lot more enjoyable for me than just reading the blogs. :)


8. someone Feb 22, 2010 at 05:16

with this new way of doing things, how would you go doing an "or" condition?


9. 0x4a6f4672 Feb 22, 2010 at 05:28

In the "Advanced Rails Recipes" book from Mike Clark, recipe 31 illustrates how to prevent train wrecks. According to Clark, train wrecks are long method chains to access attributes. Somehow the new syntax with queries like User.where(:name => "nonsense").order('id').limit(10) looks like a train wreck.


10. EppO Feb 22, 2010 at 05:29

@someone: you can do a "OR query" like this:

    cars = Car.where(["color = ? OR color = ?", "black", "red"])

great screencast, thanks Ryan


11. Jamie Hill Feb 22, 2010 at 05:44

Wow, Arel certainly cleans things up a lot especially with scopes. Awesome!


12. Nico Feb 22, 2010 at 08:33

@EppO: I believe you can leave out the square brackets:

cars = Car.where("color = ? OR color = ?", "black", "red")


13. Ryan Bates Feb 22, 2010 at 10:31

@0x4a6f4672, I think the train wreck analogy mostly applies when you are jumping through many different types of objects and through methods which can return different data. For example:

Article.first.comments.first.user.name

That line is fairly fragile because "first" may return nil. Also if there is a problem it can be more difficult to debug.

These find method calls are very consistent and always return a relation or scope object which behaves the same. I don't see a problem with it.


14. Francois Feb 22, 2010 at 15:02

I'm sold on the new active record queries after watching this screencast. Thanks again for another great, easy-to-digest, screencast.


15. Greg Feb 22, 2010 at 16:25

Does this increase the number of SQL queries?


16. Dobril Feb 22, 2010 at 17:45

Great screencast agean Ryan. Thanks!


17. 蜗牛 Feb 22, 2010 at 19:26

貌似不错,谢谢同学!


18. xinuc Feb 22, 2010 at 19:51

I love Ryan Bates :)


19. BrettD Feb 23, 2010 at 03:20

Great timing with this Railscast!!

2 Q's

1. Would there be an easy way to chain where with OR instead/with AND

2. any ideas why this is happening?

e.g. THIS FAILS

models/post.rb

  scope :visible, where("is_public =?", true)

controllers/posts_controller.rb

@posts = Post.where("user_id=?",current_user)
@posts = Post.visible if params[:view_all_posts]

this fails complaining about nil array..

But..THIS WORKS

controllers/posts_controller.rb

@posts = Post.where("user_id=?",current_user)
@posts = Post.where("is_public =?", true) if params[:view_all_posts]

this works...

Ty all,


20. Simon Henriksen Feb 23, 2010 at 06:17

Thanks Ryan for your great screencast. Looking forward to more Rails 3 screencasts! :)

Have a nice day.


21. Yuval Feb 23, 2010 at 08:42

Interesting changes, very clean. I like this a lot more that that bundler business, that's for sure. Unfortunately, even though we're all being encouraged to switch to Rails 3 asap, there are a lot of plugins and gems that are still incompatible. So its going to be a while for me, anyway.


22. Ryan Bates Feb 23, 2010 at 09:02

@Greg, no, in the long run it should decrease the number of SQL queries. Since it waits until the last moment before the query happens, there are times the query may not be necessary.

@BrettD, I don't think there is any additional support for OR queries here. You'll still need to use an SQL string in the where clause, but I wouldn't be surprised if a plugin comes out which does add OR capabilities. I have some ideas on how it could be done.

As for your second question, I have no idea why that is failing without seeing the full error message. Feel free to email me: ryan at railscasts dot com.


23. iGEL Feb 23, 2010 at 12:11

Hi!

I would love to see your ideas in form of a plugin, ryan. :)

Data Mapper of Merb does provide such a syntax, you can do queries like :age.gt(18) or :name.like("%rails%"). I believe, "or" conditions where possible aswell, but I don't recall the syntax...

iGEL


24. Austin Feb 23, 2010 at 17:17

Thanks for the great screencast Ryan! I'm really looking forward to Rails 3, and the lazy loading features you mentioned should really help performance in database intensive/high-traffic applications. Looks like some REALLY sweet stuff!


25. Rene Feb 24, 2010 at 00:17

Thanks ! love your Work.


26. Fabiano P S Feb 24, 2010 at 04:38

I was pretty much unexcited about Rails 3, for the things I've seen so far, but this is really clear and cool!
Consider casting your scraps about controller ?


27. Erik Feb 24, 2010 at 05:04

Ryan, thank you very much for (again) a splendid video.

If you would charge for accessing this site I would gladly pay you.

Thanks!


28. Dave Feb 24, 2010 at 06:36

Ryan,

Thanks for another fantastic episode, keep it up - you're a one man training company !

thanks


29. John Dyer Feb 24, 2010 at 08:21

Ryan,
Loving the tour of Rails 3 so far. This is amazing content :)

-John


30. Jens Feb 24, 2010 at 11:34

Isn't this exactly like Sequel? Anybody know the of any differences (besides filter => where and those stuff).

Allways like sequel anyways.

More importantly. Is AR now threadsafe (sequal is)


31. Boblin Feb 25, 2010 at 01:26

Great screencast Ryan. Thanks!


32. qing Feb 25, 2010 at 06:01

Thanks!


33. Omar Qureshi Feb 25, 2010 at 08:12

where("hidden != ?", true)

shouldn't that be

where("not hidden") ?


34. Michael Graff Feb 25, 2010 at 11:58

While I see this is different, and possibly better, I am worried about two things.

First, I don't see why this change must occur. It seems that all it is doing is building a SQL query in the background and delaying its execution. Why can't Foo.all delay in exactly the same way, without syntax change?

Second, I used hashes a lot, such as conditions = [ "age < :age", { :age => age }] -- is that syntax actually gone?

I just don't see this as a step forward, but just an incompatible change.


35. Alex Feb 25, 2010 at 13:17

Ryan:

Thanks for yet another wonderful episode!

With respect to your "nifty-generators" gem, will it available in 3.0?

Thanks,
Alex


36. James D'Addario Feb 25, 2010 at 13:42

great job as usual, ryan but please, stop doing casts for rails 3.

- not many use it yet
- it's not stable (things break here and there) and we dont want to waste development time on something that's 3/4 baked.
- please continue to support rails 2.3.5+

thank you, ryan! :)


37. Jeremy Chase Feb 25, 2010 at 19:55

@James think of it this way; you can spend 10 minutes watching the screencast and have a good idea of what is going on with Rails3, without wasting hours of your time messing with it.

I am still using 2.3.5 too, but I still want to know about 3.0 :)


38. Fredrik Feb 26, 2010 at 03:35

@James

Rails 3.0 works great as it is right now. Not something you would use in production for sure. But playing with it to learn what's new is great. And Bundler handles dependencies great with Git.

Only downside is the lack of ported plugins. But they are getting there. I'm already using MongoMapper and Formtastic together. Paperclip has a Rails3-branch that was forked too, which works properly with Rails 3.0beta. So it's getting there =)!


39. Ryan Bates Feb 26, 2010 at 10:22

@Omar, using "not hidden" will work in SQLite3 but is not database agnostic. I prefer to use SQL queries which can be used in other SQL databases if need be.

@Michael, it appears that the hash syntax you mentioned is still supported.

@Alex, I'm working on upgrading nifty generators to Rails 3, yes.

@James, you're right that Rails 3 is not yet stable and should not be used in production. However I highly recommend everyone give it a try now. Start a small project with Rails 3 or try branching an existing project and upgrading to get an idea of what is involved and report anything that breaks.

Right now a lot of the work needs to be done by the community. One of the biggest roadblocks to upgrading is unsupported plugins. If you want the plugins you use to work with Rails 3 the best thing to do is try it now to see what breaks and report any issues to the developers.


40. Martin Suszczynski Feb 27, 2010 at 16:31

@0x4a6f4672, @Ryan: Ruby 1.9 has introduced slip intermediate operations
into the middle of a call chain, so to prevent the train wrecks you can use tap() method, eg:
Article.first.comments.first.tap {|x| puts x}.user.name


41. hf Feb 28, 2010 at 11:25

fdg dgf dg dg


42. Omar Qureshi Mar 01, 2010 at 14:48

@Ryan, I believe you will find the "not" operator for booleans will work for all databases.

If that was not the case, queries that use "is not null" would never work, surely?


43. Chris Bloom Mar 02, 2010 at 08:57

Great screencast! At first glance, I figured the changes were merely for the purposes of being more DRY, but now I see how powerful the benefit of lazy loading can be!


44. Keith Mar 03, 2010 at 21:39

U'r 2 cool 4 skool Ryan!


45. GeoffP Mar 06, 2010 at 13:31

scope :recent, lambda { |*args| {where("created_at > ?",args.first) } }

is this correct?

any ideas as will_paginate and rails3 is breaking


46. Olek Mar 13, 2010 at 13:46

Hi Ryan,

great screencast, as usual!

I have a question: how would I lazy-load #all?

In the controller you did:
@articles = Article.order(...)

What if I wanted to lazy-load all articles? I mean something like:

@articles = Article # would need to implement Enumerable

or some other way to turn Article into an empty Relation.

Technically, I could just create a dummy Relation object as in:

@articles = Article.where('1 = 1')

but that doesn't seem to Railish...


47. Ernie Miller Apr 13, 2010 at 06:17

I'm a little late to this party, but a couple of weeks ago I put together a post discussing some interesting things about the kinds of values that are accepted by Relation#where.

In particular, you can feed Arel predicates to #where directly, or for that matter, anything that responds to #to_sql. Kind of neat I think. It's at http://bit.ly/dhSjPJ if you're interested. :)


48. Johnny Apr 17, 2010 at 11:02

Another great screencast. How did you "snap" the form information in so quickly? Is there a safari/firefox extension I'm missing?


49. hhh Jun 02, 2010 at 14:23

ddxkjmc olö,d


50. cerita nakal Jun 18, 2010 at 21:05

wayah ikam lah


51. Facebook Games Jun 18, 2010 at 21:06

facebook games is cool


52. ebook pdf Jun 18, 2010 at 21:06

ebook pdf zone


53. retro jordan Jul 02, 2010 at 18:41

wow


54. Hermes Birkin Jul 11, 2010 at 22:32

Money can`t buy Happiness? Whoever said that doesn`t know where to buy.
Buyhermesbirkin offers the high quality Hermes bags and services.
No matter it is the classic Birkin bag, or the Kelly and Lindy bag,
or the latest new designs, you can find them here. Just selecting one,
you will be the next Victoria in the street. – Comes from Shuna Sun


55. gucco shoes Jul 14, 2010 at 02:16

More please, this information helped me consider a few more things, keep up the good work.


56. nightfall ugg boots Jul 15, 2010 at 19:59

great post,i hope you update asap


57. Tibetan Jewelry Jul 16, 2010 at 23:47

It is really a good post, i like it very much!


58. Handmade Jewelry Jul 16, 2010 at 23:49

Sorry for the huge review, but I'm really loving the articles, and hope this, as well as the excellent reviews some other people have written, will help you decide if it's the right choice for you.


59. affliction clothing Jul 17, 2010 at 05:18

Our discount shop sale many things, such as shoes,cloth, jerseys ect.They will give you an unexpect surprise.Welcime you come to visit them in our discount shop.Our site is http://www.goecshop.com


60. Alexida News Jul 19, 2010 at 01:40

I was very encouraged to find this site. I wanted to thank you for this special read. I definitely savored every little bit of it and I have you bookmarked to check out new stuff you post.


61. giochi gratis Jul 19, 2010 at 01:49

Sorry for the huge review, but I'm really loving the articles, and hope this, as well as the excellent reviews some other people have written, will help you decide if it's the right choice for you.


62. Cheat Point Blank Jul 23, 2010 at 01:51

PB, thx 4 sharing


63. storm charity Jul 23, 2010 at 01:53

cool thx ryan


66. MBA degrees Jul 27, 2010 at 05:24

Thanks for explanation and for sharing the code. Waiting forward for the next Railscast


66. AAT Qualification Jul 27, 2010 at 05:32

Thanks! I had some issues with for performing finds in Active Record. You helped me a lot!


66. Google Nexus One dan Nexus One Jul 28, 2010 at 00:47

Great stuff from you, man. Ive read your stuff before and youre just too awesome. I love what youve got here, love what youre saying and the way you say it. You make it entertaining and you still manage to keep it smart. I cant wait to read more from you. This is really a great blog


67. Traveling Tips and Destinations Jul 28, 2010 at 01:40

Considerably, this post is really the sweetest on this notable topic. I harmonise with your conclusions and will thirstily look forward to your incoming updates. Saying thanks will not just be sufficient, for the phenomenal clarity in your writing. I will directly grab your rss feed to stay informed of any updates. Admirable work and much success in your business dealings!&nbsp; Please excuse my poor English as it is not my first tongue.


68. Tips Trik Internet Komputer Jul 28, 2010 at 04:45

I must admit that this is one great insight. It surely gives a company the opportunity to get in on the ground floor and really take part in creating something special and tailored to their needs.


69. apartments tips Jul 28, 2010 at 08:28

This is the perfect blog for anyone who wants to know about this topic. You know so much its almost hard to argue with you (not that I really would want...HaHa). You definitely put a new spin on a subject thats been written about for years. Great stuff, just great!


70. Best Equality Loan Jul 29, 2010 at 01:19

I was very encouraged to find this site. I wanted to thank you for this special read. I definitely savored every little bit of it and I have you bookmarked to check out new stuff you post.


71. Hot New Song Lyrics Jul 29, 2010 at 05:29

Couldn?t be written any better. Reading this post reminds me of my old room mate! He always kept talking about this. I will forward this article to him. Pretty sure he will have a good read. Thanks for sharing!


72. architect services Jul 29, 2010 at 09:42

This is the perfect blog for anyone who wants to know about this topic. You know so much its almost hard to argue with you (not that I really would want...HaHa). You definitely put a new spin on a subject thats been written about for years. Great stuff, just great!


73. nike review products Jul 29, 2010 at 20:16

I must admit that this is one great insight. It surely gives a company the opportunity to get in on the ground floor and really take part in creating something special and tailored to their needs.


74. Warn Winch Jul 30, 2010 at 08:23

Thank you for another essential article. Where else could anyone get that kind of information in such a complete way of writing? I have a presentation incoming week, and I am on the lookout for such information.


75. dima Jul 30, 2010 at 20:41

Thanks! You helped me a lot!


76. pll fm transmitter Aug 01, 2010 at 19:53

Ryan, thank you very much for (again) a splendid video.
If you would charge for accessing this site I would gladly pay you.

Thanks!


77. somemap Aug 01, 2010 at 22:05

What youre saying is completely true. I know that everybody must say the same thing, but I just think that you put it in a way that everyone can understand. I also love the images you put in here. They fit so well with what youre trying to say. Im sure youll reach so many people with what youve got to say.


78. Zampano Aug 02, 2010 at 20:48

Thanks for getting the time to discuss this, I really feel strongly about it and surely reading incredible on this subject. If feasible, as you obtain expertise, would you mind updating your weblog with really good information and facts? It truly is basically valuable for me.


79. free music download mp3 Aug 03, 2010 at 05:25

This is a smart blog. I mean it. You have so much knowledge about this issue, and so much passion. You also know how to make people rally behind it, obviously from the responses.


80. Tips to Get a Scholarship Aug 05, 2010 at 03:47

This is my first time i visit here. I found so many entertaining stuff in your blog, especially its discussion. From the tons of comments on your articles, I guess I am not the only one having all the enjoyment here! Keep up the good work.


81. UK PO Boxes Aug 05, 2010 at 03:49

Considerably, this post is really the sweetest on this notable topic. I harmonise with your conclusions and will thirstily look forward to your incoming updates. Saying thanks will not just be sufficient, for the phenomenal clarity in your writing. I will directly grab your rss feed to stay informed of any updates. Admirable work and much success in your business dealings!&nbsp; Please excuse my poor English as it is not my first tongue.


82. Your Freedom Shopping Aug 05, 2010 at 08:40

This is my first time i visit here. I found so many entertaining stuff in your blog, especially its discussion.


84. Tubiletta Aug 06, 2010 at 03:21

Thank you. This is a smart blog.


85. All About Technology Aug 06, 2010 at 09:28

That fantabulous post this has been. Within no way seen this kind associated with useful post. I’m grateful to you and anticipate much more associated with posts such as. Thank you very much.


86. most expensive car Aug 06, 2010 at 23:11

Aw, this was a really great post. In theory I'd like to write like this also - taking time and real effort to make a good article... but what can I say... I procrastinate alot and never seem to get something done.


86. Music Update Aug 07, 2010 at 07:18

The beauty of these blogging engines and CMS platforms is the lack of limitations and ease of manipulation that allows developers to implement rich content and 'skin' the site in such a way that with very little effort one would never notice what it is making the site tick all without limiting content and effectiveness.


89. Alex Aug 09, 2010 at 10:59

Wooww..... Great Screen shoot.


90. Autos Aug 09, 2010 at 11:01

I hope is very usefull for me. thanks for your information


90. Most Intelligent Animal Aug 10, 2010 at 01:58

Thank you, all of information from this site very useful.

I also has a good website about Most Intelligent Animal
in "http://www.worldinterestingfacts.com/animal/top-10-most-intelligent-animals-in-the-world.html".

Maybe You can take a look at my website as well.
Thanks


91. Most Intelligent Dog Aug 10, 2010 at 02:03

Great Article, Thanks.

I also has a good website about Most Intelligent Dog
in "http://www.worldinterestingfacts.com/animal/top-10-most-intelligent-dog-breeds-in-the-world.html".

Maybe You can take a look at my website as well.
Thanks


91. Most Expensive Laptop Aug 10, 2010 at 02:08

This article is very interesting.

I also has a good website about Most Expensive Laptop
in "http://www.worldinterestingfacts.com/lifestyle/top-10-most-expensive-laptop-computers-in-the-world-that-you-may-want-to-put-beside-your-business-folders.html".

Maybe You can take a look at my website as well.
Thanks


92. UGG Boots on sale Aug 10, 2010 at 18:50

Gooooooooooooooooooood luck ~~!!


93. seo expert UK Aug 11, 2010 at 05:16

Ruby on Rails is separated into various packages, namely ActiveRecord , ActiveResource, ActionPack, ActiveSupport and ActionMailer. Prior to version 2.0, Rails also included the Action Web Service package that is now replaced by Active Resource. Apart from standard packages, developers can make plugins to extend existing packages.


94. business travel solutions Aug 11, 2010 at 10:08

Hrmm that was weird, my comment got eaten. Anyway I wanted to say that it's nice to know that someone else also mentioned this as I had trouble finding the same info elsewhere. This was the first place that told me the answer. Thanks.


95. jewelry information Aug 11, 2010 at 10:09

This is my first time i visit here. I found so many entertaining stuff in your blog, especially its discussion. From the tons of comments on your articles, I guess I am not the only one having all the enjoyment here! Keep up the good work.


96. Windows 7 themes Aug 14, 2010 at 08:18

Finally, an issue that I am passionate about. I have looked for information of this caliber for the last several hours.


97. Auto Cars Aug 15, 2010 at 04:50

Couldn?t be written any better. Reading this post reminds me of my old room mate! He always kept talking about this. I will forward this article to him. Pretty sure he will have a good read. Thanks for sharing!

Great stuff from you, man. Ive read your stuff before and youre just too awesome. I love what youve got here, love what youre saying and the way you say it. You make it entertaining and you still manage to keep it smart. I cant wait to read more from you. This is really a great blog.


98. cheap iphone Aug 15, 2010 at 21:08

Great site. Very nice read.


99. Technology Update Aug 16, 2010 at 04:21

This is the perfect blog for anyone who wants to know about this topic. You know so much its almost hard to argue with you (not that I really would want...HaHa). You definitely put a new spin on a subject thats been written about for years. Great stuff, just great!
Resources like the one you mentioned here will be very useful to me! I will post a link to this page on my blog. I am sure my visitors will find that very useful.


100. nada Aug 17, 2010 at 08:41

i like this post
keep updating


101. Rip Blu-ray for Mac Aug 18, 2010 at 01:43

Thanks,it's so good.
suport!


102. free windows 7 wallpaper Aug 19, 2010 at 05:10

Thank you for another essential article. Where else could anyone get that kind of information in such a complete way of writing? I have a presentation incoming week, and I am on the lookout for such information.


103. Fast Food Obesity Aug 20, 2010 at 04:52

I was very encouraged to find this site. I wanted to thank you for this special read. I definitely savored every little bit of it and I have you bookmarked to check out new stuff you post.
I admire the valuable information you offer in your articles. I will bookmark your blog and have my children check up here often. I am quite sure they will learn lots of new stuff here than anybody else!


104. wholesale new era caps Aug 20, 2010 at 20:11

I recently came across your blog and have been reading along.
I thought I would leave my first comment. I don’t know what to say except that I have enjoyed reading.Nice blog,I will keep visiting this blog very often.


105. converse all star Aug 20, 2010 at 20:49

love converse all star,love yourself.High quality low price.It's fit for you.


106. Top 5 Ranks Aug 20, 2010 at 22:55

Great post. This article is very interesting, Thanks.


107. Top 10 Ranks Aug 20, 2010 at 22:57

Thanks, all information from this site very useful.


108. Daily Car Tips Aug 20, 2010 at 23:04

Nice information, Thanks. I think you have simple and unique blog


109. Campus and Student Aug 20, 2010 at 23:07

Great, I will try it. Thank you for your help


110. Daily Loan Tips Aug 20, 2010 at 23:09

This is my first time I visit here. I think, this is perfect blog. Thank you very much


111. Guide on Health Aug 20, 2010 at 23:11

Nice Information, thanks. Good articles


112. Decor Home Tips Aug 20, 2010 at 23:13

Thank you for this post. I am new to your blog and get really very nice. I will keep visiting your blog.


113. Finance Business Info Aug 20, 2010 at 23:16

Thank you for sharing information. Good Luck


114. Gadget Compare Aug 20, 2010 at 23:19

Keep working ,great job!


115. Gadget Compare Aug 20, 2010 at 23:22

Keep working ,great job!


116. Guides on Insurance Aug 20, 2010 at 23:25

Hey very nice blog!!Beautiful .. Amazing .. I will bookmark your blog and take the feeds also


117. Holiday Travelling Tips Aug 20, 2010 at 23:27

Enjoyed every bit of your blog.Great.


118. Legal Law Info Aug 20, 2010 at 23:30

Great Blog. I'm sure this blog has a lot of fan.
Thanks


119. Daily Sport Info Aug 20, 2010 at 23:31

Pretty good post.I found your website perfect for my needs. thanks for sharing the great ideas.


120. Tech Update Today Aug 20, 2010 at 23:34

This article is very interesting.


121. Indian Patent Lawyers Aug 22, 2010 at 01:29

That line is fairly fragile because "first" may return nil. Also if there is a problem it can be more difficult to debug.


122. Software Driver Aug 22, 2010 at 04:24

Hey, just looking around some blogs, seems a pretty nice platform you are using. I'm currently using Wordpress for a few of my sites but looking to change one of them over to a platform similar to yours as a trial run. Anything in particular you would recommend about it? .I must admit that this is one great insight. It surely gives a company the opportunity to get in on the ground floor and really take part in creating something special and tailored


123. replicahandbags Aug 23, 2010 at 03:02

I have always liked Outdoor movies, a child standing at the window, looked out from home to

the following. Will be able to see the staff busy figure, a huge white cloth has a child

hang up and soon will be able to see the movie.


124. dui lawyer miami Aug 23, 2010 at 05:01

The beauty of these blogging engines and CMS platforms is the lack of limitations and ease of manipulation that allows developers to implement rich content and 'skin' the site in such a way that with very little effort one would never notice what it is making the site tick all without limiting content and effectiveness.


125. dui attorneys miami Aug 23, 2010 at 05:04

Thank you for another essential article. Where else could anyone get that kind of information in such a complete way of writing? I have a presentation incoming week, and I am on the lookout for such information.


126. miami criminal attorney Aug 23, 2010 at 05:06

I was very encouraged to find this site. I wanted to thank you for this special read. I definitely savored every little bit of it and I have you bookmarked to check out new stuff you post.


127. dui lawyer miami Aug 23, 2010 at 05:09

This is the perfect blog for anyone who wants to know about this topic. You know so much its almost hard to argue with you (not that I really would want...HaHa). You definitely put a new spin on a subject thats been written about for years. Great stuff, just great!


128. Car Accident Attorney Aug 23, 2010 at 05:11

Simply, admirable what you have done here. It is pleasing to look you express from the heart and your clarity on this significant content can be easily looked. Remarkable post and will look forward to your future update.


129. Mens Wedding Bands Aug 23, 2010 at 05:12

Let me start by saying nice post. Im not sure if it has been talked about, but when using Chrome I can never get the entire site to load without refreshing many times. Could just be my computer. Thanks.


130. Car Reviews Aug 23, 2010 at 05:14

I thought it was going to be some boring old post, but it really compensated for my time. I will post a link to this page on my blog. I am sure my visitors will find that very useful


131. Jordan basketball shoes Aug 24, 2010 at 22:53

Fantastic screencast! Helped me refactor some similar stuff I had been doing with Rails and jQuery. i love your articles youre always giving me great ideas on how to progress with my blog. thanks a lot for keeping us informed.


132. Most Expensive House in The World Aug 26, 2010 at 01:43

Great post this will enhance the reader, very informative articles.
thanks for sharing.


133. Most Expensive Watch Aug 26, 2010 at 01:46

Interesting post.thanks for posting. I’ll likely be coming back to your blog. Keep up great writing.


134. Most Expensive Yacht Aug 26, 2010 at 01:47

Your post is really amazing as it provide visitors with great knowledge.


135. Most Beautiful Beach Aug 26, 2010 at 01:51

Wonderful article, thanks! This is obviously one great post. Thanks for the valuable information and insights you have so provided here


136. Fastest Car Aug 26, 2010 at 01:54

This is my first time i visit here. I found so many entertaining stuff in your blog, especially its discussion. From comments on your articles, I guess I am not the only one having all the enjoyment here! Keep up the good work.


137. Most Expensive Painting Aug 26, 2010 at 01:57

I very much enjoyed your website. Excellent content


138. Most Expensive Cell Phone Aug 26, 2010 at 02:01

I just want to say that you're a great blogger.
Thanks for a good share


139. Most Expensive Diamond Aug 26, 2010 at 02:04

Pretty good post.I found your website perfect for my needs. thanks for sharing the great ideas.


140. Most Famous Painting Aug 26, 2010 at 02:07

Very nice and helpful information has been given in this topic. Keep working. Thanks. . .


141. Most Expensive Liquor Aug 26, 2010 at 02:09

Thanks, all information from this site very useful.


142. Business News Aug 26, 2010 at 04:21

What youre saying is completely true. I know that everybody must say the same thing, but I just think that you put it in a way that everyone can understand. I also love the images you put in here. They fit so well with what youre trying to say. Im sure youll reach so many people with what youve got to say.I was very encouraged to find this site. I wanted to thank you for this special read. I definitely savored every little bit of it and I have you bookmarked to check out new stuff you post.


143. movie blog Aug 26, 2010 at 23:09

I was very encouraged to find this site. I wanted to thank you for this special read. I definitely savored every little bit of it and I have you bookmarked to check out new stuff you post. this post is really the sweetest on this notable topic. I harmonise with your conclusions and will thirstily look forward to your incoming updates. Saying thanks will not just be sufficient, for the phenomenal clarity in your writing. I will directly grab your rss feed to stay informed of any updates. Admirable work and much success in your business dealings!&nbsp; Please excuse my poor English as it is not my first tongue.


144. louis vuitton shoes Aug 26, 2010 at 23:21

Thanks for sharing your article. I really enjoyed it. I put a link to my site to here so other people can read it. My readers have about the same interets


145. Sreehari Ambati Aug 27, 2010 at 06:46

Hi,How to fit the large string into single textbox without breaking the word in active reports.


146. Cosplay costumes Aug 27, 2010 at 23:30

good


147. Lena Aug 28, 2010 at 01:00

I like your taste, the actual fact that your site is a tad bit different makes it so helpful, I get completely fed up of discovering the same stuff almost all of the time. I have I just stumbled on this page by you Appreciate it.


148. Shripad K Aug 29, 2010 at 06:01

Hi Ryan,

I hope this comment does not get lost in all the spam that has filled your page :(

I am using pg adapter(postgres) instead of sqlite3.

While playing with the console I found that when i do Article.order("name") i do not get a list ActiveRecord::Relation objects(as shown in the screencast). You spoke about lazy-loading.. this however does not seem to work with the setup that i have. I instead get the entire list of articles (as you would if you did Article.order("name").all).

Has it got anything to do with the postgres adapter?
Is this a bug that needs to be reported?

Thanks,
Shripad


149. computer news Aug 29, 2010 at 19:23

Great post! Im just starting out in community management/marketing media and trying to learn how to do it well - resources like this article are incredibly helpful.I thought it was going to be some boring old post, but it really compensated for my time. I will post a link to this page on my blog. I am sure my visitors will find that very useful As our company is based in the US, it?s all a bit new to us.


150. Mesothelioma Information Aug 30, 2010 at 11:06

I like your post ,Keep in submitting.


151. nba wallpaper Aug 30, 2010 at 13:45

I admire the valuable information you offer in your articles. I will bookmark your blog and have my children check up here often. I am quite sure they will learn lots of new stuff here than anybody else!
I was very encouraged to find this site. I wanted to thank you for this special read. I definitely savored every little bit of it and I have you bookmarked to check out new stuff you post.


152. snow boots Aug 30, 2010 at 20:29

Thanks for covering the Rails3 changes; it is a lot more enjoyable for me than just reading the blogs. :)


153. PayingAdspot Aug 31, 2010 at 04:47

Let me start by saying nice post. Im not sure if it has been talked about, but when using Chrome I can never get the entire site to load without refreshing many times. Could just be my computer. Thanks.


154. Art of Home Improvement Aug 31, 2010 at 04:51

Simply, admirable what you have done here. It is pleasing to look you express from the heart and your clarity on this significant content can be easily looked. Remarkable post and will look forward to your future update.


155. Affordable SEO Service Aug 31, 2010 at 04:52

This is the perfect blog for anyone who wants to know about this topic. You know so much its almost hard to argue with you (not that I really would want. You definitely put a new spin on a subject thats been written about for years. Great stuff, just great!


156. Infant Milestones Aug 31, 2010 at 20:18

Finally, an issue that I am passionate about. I have looked for information of this caliber for the last several hours. Your site is greatly appreciated.I will bookmark your blog and have my children check up here often. I am quite sure they will learn lots of new stuff here than anybody else!


157. my car tips Aug 31, 2010 at 22:22

Excellent information. I found your website perfect for my needs


158. woman tips Aug 31, 2010 at 22:31

Keep working , Good luck


159. computer tips Aug 31, 2010 at 22:33

this site very useful. I think you have unique and simple blog


160. fashion tips Aug 31, 2010 at 22:46

Very nice and helpful information. Great


161. home tips Aug 31, 2010 at 23:08

Good articles. I very much enjoyed your website


162. insurances tips Aug 31, 2010 at 23:25

I very much enjoyed your website. Thanks


163. credit cards info Aug 31, 2010 at 23:29

Excellent content. Thanks for a good share


164. money tips Aug 31, 2010 at 23:33

Keep up great writing.Great


165. men tips Aug 31, 2010 at 23:45

This article is very interesting.


166. fitness health tips Aug 31, 2010 at 23:57

Enjoyed every bit of your blog. Amazing


167. fitness tip Aug 31, 2010 at 23:59

thanks for sharing the great ideas. Excellent content


168. mortgage tips Sep 01, 2010 at 00:04

This is my first time I visit here. Perfect site


169. mortgage tips Sep 01, 2010 at 00:05

This is my first time I visit here. Perfect site


170. stocks tips Sep 01, 2010 at 00:19

Interesting post. I will keep visiting your blog.


171. blu ray ripper Sep 01, 2010 at 23:56

This is really a nice guide for Newbies like me. Thank you.


172. acne treatment Sep 02, 2010 at 00:33

admirable what you have done here. It is pleasing to look you express from the heart and your clarity on this significant content can be easily looked. Remarkable post and will look forward to your future update.You make it entertaining and you still manage to keep it smart. I cant wait to read more from you. This is really a great blog.

Add your comment:

(SKIP THIS ONE)

(required)

(not shown)


(use pastie or gist for code)

sponsored by:
if you want to help:
required:
Get Quicktime Player
Give Back to Open Source