Tag: Sano

  • Blood pressure and conclusion

    In less than an hour, I quickly added blood pressure: It was really quick and dirty and it doesn’t have an in-line form, but it’s there and it’s working. I wasn’t able to achieve as much as I could but I think I got pretty far for one weekend. And it’s very clear that by […]

  • First graph

    It’s not perfect, but it’s a start:

  • My Profile page: a RESTful single resource using Formtastic

    I’ve just implemented the My Profile tab for Sano: Can I write 500 words about? Well, I can try. I like using RESTful routes. In case you don’t know what they are let me try to explain it quick, at least the relevant part. You normally have a set of route rules that would point […]

  • Migrations that change the schema

    Up until today I did everything with a lot of planning and I let my OCD use migrations in a way they were not intended: I would go back and fix old migrations and destroy the database and re-run them. With Sano, as I went through as fast as I could, two things happened: I […]

  • I love to code

    I said I was done for the day more than 6 hours ago, but I love to code, I couldn’t stop. I wanted to implement a small feature: make the creation of new weights simpler for the common case and I did it: Note: That change is not yet deployed. I don’t play with servers […]

  • Sano is open for business

    I really wish I was able to get farther in one day, but I think it’s good enough that I went from idea to deployed app. On retrospective I wasted too much time figuring out formtastic. I don’t regret doing it because it was in my TODO list and in the long run it should […]

  • Super Exception Notifier

    I like knowing when something goes wrong with my web apps, so I’m using Super Exception Notifier to get by email a report should any exception be raised in the app. If you go to Super Exception Notifier’s site you’ll see some instructions on how to add it to your project. This is how I […]

  • Merging users

    Remember that I said that when you log in, your ghost user has to be merged with the real user? Well, this is the code for doing it: class User < ActiveRecord::Base #… def merge(user_id) if user_id != nil user = User.find(user_id) user.weights.each do |weight| weight.user = self weight.save end user.destroy end end end The […]

  • Logging in now works

    If a picture is worth a thousand words, this post has three thousand fifteen words:

  • Simplifying the weight CRUD

    After a rather long fight with formtastic I have a better CRUD for weight: But now that I think about it, there shouldn’t be a measured at in this view. That should be in an advanced new-form.