Feeds:
Posts
Comments

Archive for January, 2008

Generator: Stage

Update: Stage has become a gem and project details can be found at stonean.com
This post was updated on 04-27-08 to reflect the improved design. I’m using the RubyOnRails methods as this is where Stage was born, but Stage is available for Merb as well.
I’ve just completed a new generator called stage. This is a [...]

Read Full Post »

REST: Active Record Resource CRUD

I need to point out that I am new to REST and these posts are simply me thinking through these topics to obtain a better understanding. If you find something I’ve said to be incorrect, please let me know.
Simply put, REST design is about resources. To go further, REST design is about providing [...]

Read Full Post »

RSpec boolean values in views

Here’s an annoying little issue. Annoying because I didn’t think it through.
Here’s the index.html.erb_spec.rb:
require File.dirname(__FILE__) + ‘/../../spec_helper’

describe “/folders/index.html.erb” do include FoldersHelper

before(:each) do folder_98 = mock_model(Folder) folder_98.should_receive(:name).and_return(“MyString”) folder_98.should_receive(:top_level).and_return(false) folder_99 = mock_model(Folder) folder_99.should_receive(:name).and_return(“MyString”) folder_99.should_receive(:top_level).and_return(false)

[...]

Read Full Post »