Changeset 4228
- Timestamp:
- 04/18/06 05:36:37 (2 years ago)
- Files:
-
- applications/molecule/app/controllers/entries_controller.rb (modified) (1 diff)
- applications/molecule/app/models/entry.rb (modified) (1 diff)
- applications/molecule/config/environment.rb (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
applications/molecule/app/controllers/entries_controller.rb
r4227 r4228 16 16 def create 17 17 @entry = @workspace.entries.create(params[:entry]) 18 19 respond_to do |type| 20 type.js 21 type.atom do 22 headers["Location"] = entry_url(:id => @entry) 23 render :nothing => true, :status => "201 Created" 24 end 25 end 18 26 end 19 27 applications/molecule/app/models/entry.rb
r4227 r4228 1 1 class Entry < ActiveRecord::Base 2 2 belongs_to :workspace 3 4 def updated=(time) 5 self.updated_at = time 6 end 3 7 4 8 def summary applications/molecule/config/environment.rb
r4219 r4228 22 22 end 23 23 24 ActionController::Base.param_parsers[Mime::ATOM] = :xml_simple 25 24 26 # Add new inflection rules using the following format 25 27 # (all these examples are active by default):