search for: createcounters

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

2007 Feb 24
2
RESTful PUT and button_to
...ful app, and I''ve hit a snag. Here''s a simplified example of the problem. (Excuse me if this example code isn''t strictly correct; I''m typing from memory.) Suppose I have a table which models a simple counter. It has a single column, "count": class CreateCounters < ActiveRecord::Migration def self.up create_table :counters do |t| t.column :count, :integer end end def self.down drop_table :counters end I''ve created a RESTful controller using the scaffold_resource generator. In the "show" view, I''d l...