Dec 2
Inspired by gist from DHH I bring you simple recipe for slightly more powerful soft deletes. Main feature is adding before_trash and after_trash callbacks by utilizing define_model_callbacks. Another nice-to-have is recording timestamp of deletion.
Recommended reading for this and another patterns for soft-deletes is Richard Dingwall’s article.
Jul 11
Lots of my friends are starting with Ruby on Rails development and all of them have similar questions. They often have previous PHP experience. This post is about directions and sources which helped me. You may also read my previous article about
setting Mac for RoR development.
1) Ruby
You can learn Ruby (the language) as you go by learning primary Rails, it worked for me.
2) Rails
3) Git and GitHub
Install git and get familiar with it.
- Book: Pro Git – free html book
- Screeencasts: GitCasts
- GitHub: Grab account, you will use GitHub a lot. Almost all Rails related code is hosted there (including plugins, gems and RoR itself).
4) Asking questions
5) Czech sources
Bonus sources
- RubyFlow – community links
- Planet – rails related blog aggregator
- RubyShow – podcast with Dan Benjamin and Jason Seifer
Now go and develop some great Rails application. Remember, it is not about tools (Rails in this case), but about what you can do with them.