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 [...]
Archive for January, 2008
Generator: Stage
Posted in RubyOnRails, Stage on January 31, 2008 | 4 Comments »
REST: Active Record Resource CRUD
Posted in REST, RubyOnRails on January 30, 2008 | Comments Off
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 [...]
RSpec boolean values in views
Posted in RSpec on January 5, 2008 | 1 Comment »
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)
[...]
