Archive for » October, 2006 «

Sunday, October 29th, 2006 | Author: Raven

First weekend with Ruby on Rails. I can’t say it’s easy, but it is good. The meta classes created from the table definitions and the few lines of code (so far) in the model works great. I’ve already used stuff not mentioned in the tutorials. David (creator of Rails) loves to say “look at what I’m not doing”, well, by choosing the good examples it’s easy. I had to use

belongs_to :buyer, :class_name => "User", :foreign_key => "buyer_id"

already and that isn’t in the tutorial. And with the wiki totally spammed good information takes time to find. The above gives me no magic at all, I have to tell it what table to use and what column to use. Actually it give me some magic, it knows that User.id is the id to match against. Anyway, after creating the models, filling out the migrations and raking the server (”rake migration” runs all new migrations up to the latest version) it works great. The meta objects allows me to access related objects really nice, and I haven’t even created the class.

I still don’t really get how the controllers are going to work, but I’m quite confident with the models now, and I’ve stumbled over the routes file so I understand how to create the magic Ruby on Rails url schema. And I understand some of the console (which is a nice feature) so I can create and test objects without even going to the webpage.

I haven’t created a blog in 15 minutes, but I have created the skeleton my site in several long hours ;)

Category: stuff  | Leave a Comment
Sunday, October 29th, 2006 | Author: Raven

Jag ligger iaf i fas nu

Statistik (v. 44)
Köpt för: 1100kr
Vunnit: 670kr
Vinst%: 61%

Category: stuff  | Leave a Comment
Saturday, October 28th, 2006 | Author: Raven

(edit, translated this text to english)

A new site, initialy for buying and selling skydiving gear, is my new project. It feels like this might be the first project actually being used :)

Each time I’m selling or buying gear I’m astonished over how bad it works. There is one mailinglist and the classifieds secton at Uffes hoppshop, and to be honest, it’s quite bad. I’m trying to change that.

This isn’t a new idea but after hearing my co-workers speaking about Ruby on Rails I decied to try it out and this became my test project. These are my development paradigms:

  • Only the initial setup of users and databases will be made outside the framework. Everyting after that will be made with migrations.
  • I will make an effort to do things The Rails Way[tm]. I will name columns, tables and everyting else in the “standard” way and have Rails do it’s magic.

{democracy:2}
Category: stuff  | Leave a Comment
Saturday, October 28th, 2006 | Author: Raven

En nitlott till, frågan är om jag inte kommer ner på typ 50% till slut :(

Statistik (v. 43)
Köpt för: 1075kr
Vunnit: 670kr
Vinst%: 62%

Category: stuff  | Leave a Comment
Monday, October 16th, 2006 | Author: Raven

Markus sa att han hade saknat uppdateringar av mina lotter :) Han är snäll. Iaf så har jag köpt totalt 5 sen sist, 50 spänn i vinst, det går utför nu.

Statistik (v. 42)
Köpt för: 1050kr
Vunnit: 670kr
Vinst%: 64%

Markus har en egen blog nu, om hans spel. Titta på den.

Category: stuff  | Leave a Comment
Wednesday, October 11th, 2006 | Author: Raven

Jag lade ut Manne-filmen på Youtube. Undra om någon ser den.

Sen den här.

Category: stuff  | Leave a Comment