Tag: building Sano

  • Getting the current user

    I’m not using any authentication gem or plug in, I’m rolling my own. I’m actually using OpenID, so rolling my own is not hard: no passwords to encrypt, resend and send, no email address to verify. I think this is the future. But I’m also doing something that I call ghost users. When you use […]

  • Creating the weight model and scaffolding

    With one command line I’ve created the weight model and the scaffolding, a fully functional CRUD little app without my Rails app. I know all Rails developer are rolling eyes now; but I still think this is awesome. It gets you up and running so fast: ./script/generate scaffold weight user_id:integer weight:float timestamp:datetime exists app/models/ exists […]

  • Profile models

    The profiles in Sano are built out of two models: User OpenId The reason to have an OpenId model and not just one field in the User model is that I like giving users the possibility of defining more than one OpenId provider. StackOverflow does that and since I use my own OpenId server, the […]

  • rails sano

    For those that never used Ruby on Rails, basically you run: rails <projectname> and you have a complete runnable Rails project with lot’s of placeholders so that you don’t have to worry about where to put stuff and making sure things work well together. Just after doing rails sano I went and run the testing […]

  • I'm going to do an experiment today

    I’ve started learning C# and ASP.NET MVC about 5 or 6 months ago. While learning I’ve developed a clone of Reddit that had a very clear differentiator: you could see the messages and the web page at the same time. When I was close to completion Reddit released exactly that feature. I scrapped that project. […]