Tag Archives: Building 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 … Continue reading

Posted in other | Tagged , | 1 Comment

First graph

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

Posted in other | Tagged , | Leave a comment

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 … Continue reading

Posted in other | Tagged , , , , , | Leave a comment

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. … Continue reading

Posted in other | Tagged , , , , | Leave a comment

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 … Continue reading

Posted in other | Tagged , , , , | Leave a comment

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 … Continue reading

Posted in other | Tagged , , , , | Leave a comment

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 … Continue reading

Posted in other | Tagged , , , , | Leave a comment

Logging in now works

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

Posted in other | Tagged , , , , | Leave a comment

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.

Posted in other | Tagged , , , , | Leave a comment

Making the weight CRUD work per user

In the previous two posts I created a full CRUD, using scaffolding, for weights and a way to get the current user. The weight CRUD, as it was, allowed you to edit data for any user (check out the screenshots). … Continue reading

Posted in other | Tagged , , , | Leave a comment