Tags » Devin

rails render partial with ajax (on load-- NOT after request)

I must be overlooking something here. Any help would be appreciated.

I want to load a partial on a page with ajax when I visit a page. 302 more words


Getting a random record from a Rails grouped query query

I have a model which I have around 250k instances stored. If I want to get a random instance, it’s simple to do the following: 148 more words