Skip to main content

Joel Liu's Library tagged ruby   View Popular, Search in Google

Jan
24
2008

  • It seems more and more these days like people just don’t want to hear about  Ruby.  Ruby posts to link sites like DZone or Reddit get voted down before  they have a chance to see the light of day.  Pointless flames litter the  blogs, declaiming Ruby and alternatively crowning Groovy, Scala, Java or even  XML in its place.  The sad thing is that no one seems to have found the  middle ground yet
Jul
26
2007

  • The storage of dates in the *_parsed items (such as, updated_parsed, created_parsed, etc.) are in the Python 9-tuple format. While this is great for passing the date tests, Ruby has no good way of understanding these things. So, I wrote a helper method py2rtime that takes one of these 9-tuples as its argument and returns a Ruby Time object. It's placed in the top-level namespace, so you can call it anywhere in your code
May
7
2007

    • Single-signon is such a common feature request for many site networks. And while frequent at that, the powers that be impose difficulties on this task that make it a daunting experience for every web developer. In this piece, I’m outlining a practical approach for a hosted Rails application.

        

      Revisiting the definition of “single-signon” we’ll declare that this means:

        
         
      1. A user has to be able to login with the same credentials across multiple sites
      2. For convenience, we want a user to be logged in on site B if he had logged in on site A before
      3. If a user logs out of a single site, we want him to be logged out in all other sites as well
Jul
20
2006

  • The rails way seems to be to put as much logic as possible into the models. To think of it another way, you should be able to run your application through all its important processes by calling methods on model objects at the console. More concretely core logic such as authentication and sending a new password should be in the model, not the controller.
1 - 20 of 82 Next › Last »
Showing 20 items per page

Diigo is about better ways to research, share and collaborate on information. Learn more »

Join Diigo
Move to top