search for: hardwayscontrol

Displaying 1 result from an estimated 1 matches for "hardwayscontrol".

2008 Jan 26
0
RSpec and resource_controller plugin
...ese generated resources. It always seems to take me longer than it should to make the changes in both the controller, the views, and the specs to get to square one. The plugin, which brings back the script/generate scaffold_resource with new meaning turns a controller that looks like this: class HardwaysController < ApplicationController # GET /hardways # GET /hardways.xml def index @hardways = Hardway.find(:all) respond_to do |format| format.html # index.html.erb format.xml { render :xml => @hardways } end end # GET /hardways/1 # GET /hardways/1.xml def show...