merb 0.9 & haml

Posted by jswanner

I'm currently playing around w/ merb 0.9, and using haml. Trust me things are not starting off super smoothly. But, I am enjoying using something new, something that's changing daily; reminds me of when I first started using Rails, and all the frustration of not being able to figure something out, followed by the joy when it worked.

That said, there will probably be quite of few posts dealing with all the things that hang me up along the way, so that I have a place to come back to in the future to find the answers.

It appears as though there used to be a file called dependencies.rb (before I tried Merb). In this file you'd specify what dependencies your app needed, using something like:

dependencies "RedCloth", "merb_helpers"

or

dependency "RedCloth"

That was changed, and would then declare your app's dependencies in config/init.rb. Apparently, since yesterday that has changed again slightly. You still declare your dependencies in config/init.rb, but instead of going in the body of the file, it now goes in the after_app_loads code block, as such:

Merb::BootLoader.after_app_loads do
  ### Add dependencies here that must load after the application loads:
  require "merb-haml"
end

Some might have noticed that you no longer call the dependency method, but just plain old require.

lazy blogger, acts_as_conference

Posted by jswanner

When I put this blog up, I had all the intentions in the world to really use it. I wanted to write about all the cool/interesting/weird things I’d discovered. But, that is definitely not what has happened. But, I really want to start using it more.

I have ideas for things to write about. I recently attended acts_as_conference, I really enjoyed it, and even learned a little in the process. I’ve been attending the Orlando Ruby Users Group (orug) meetings for a while now, and presented at the last one. What I’ve learned from these activities are just some of the things I want to write about on here.