Feeds:
Posts
Comments

Archive for April, 2008

Stage: Rails version

I initially had this idea for reducing the Ruby code in the views. That manifested itself as the Stage plugin. I was never really satisfied with the result, passing the form variable around was such a hack.
Thanks to the action_name instance variable, I’ve now cleaned it up and am much happier with the [...]

Read Full Post »

Merb: Stage gem

I’ve just written a little code template generator for Merb called Stage. This idea was originally implemented as a plugin for Rails, but has been refactored as a gem. This new version is for Merb + DataMapper only. Extended support for Rails and other ORMs are planned.
There appears to be some quirk [...]

Read Full Post »

github and public key

If you haven’t heard, everyone is moving to git. Not really sure why yet, I like svn, but felt like I should probably keep in touch. I have a need to create a Stage generator for Merb, so I thought this would be a good opportunity. Quick note: the Stage generator for [...]

Read Full Post »

Merb Assets updated

The merb-assets post has been updated with information on css and javascript helpers.

Read Full Post »

Merb Helpers

$ sudo gem install merb_helpers
This will get you the merb_helpers gem. This handy gem has the helpers I found really useful in Rails. Methods such as form_for, error_messages_for and the like are included in this gem.
Not all the methods are exactly the same as the Rails helpers. Take a look at the [...]

Read Full Post »

Merb Assets – clarified

So, I had some confusion at the start between assets and helpers. While merb-assets provides the link_to method, it’s not the same as what I would consider “helpers”. Assets are, well, asset oriented. By this I mean images, javascripts and stylesheets. Please refer to the merb-more documentation for assets to get a [...]

Read Full Post »

Merb Routing update

I’ve updated the Merb Routing post with information on how to use your defined resources with link_to.

Read Full Post »

Merb boot order

So, for the better part of a day, I’ve been really focused on the load sequence of Merb to understand the order in which the resources are loaded. Here’s a summary of my understanding of the bootloader code.
The BootLoader class has a clean design for defining the initialization sequence, it just took me a [...]

Read Full Post »

Merb Sessions

By default, Merb uses a cookie session store. Straight from the Merb docs:
If you have more than 4K of session data or don’t want your data to be visible to the user, pick another session store.
I have more than 4k and I don’t want the data visible (most important aspect). So, since I’m [...]

Read Full Post »

Initializers in Merb

Note: A lot has been learned since I posted this. Please read the boot order post for more detailed information.
I was a fan of the config/initializers directory functionality recently added into Rails. I want it in Merb. So, to get this add the following into the Merb::BootLoader.before_app_loads block in config/init.rb.
Merb::BootLoader.before_app_loads do [...]

Read Full Post »

Older Posts »