Sha256: 58574d97700885973d8b26d7473c04ec3e81604e2f1802ff411eedc9c8efb432
Contents?: true
Size: 1.38 KB
Versions: 3
Compression:
Stored size: 1.38 KB
Contents
module Tim class ImageVersionsController < Tim::ApplicationController def index @image_versions = Tim::ImageVersion.all unless defined? @image_versions respond_with @image_versions end def show @image_version = Tim::ImageVersion.find(params[:id]) unless defined? @image_version respond_with @image_version end def new @image_version = Tim::ImageVersion.new unless defined? @image_version @image_version = Tim::ImageVersion.new respond_with @image_version end def edit @image_version = Tim::ImageVersion.find(params[:id]) unless defined? @image_version respond_with @image_version end def create @image_version = ImageVersion.new(params[:image_version]) unless defined? @image_version if @image_version.save flash[:notice] = 'Image version was successfully created.' end respond_with @image_version end def update @image_version = Tim::ImageVersion.find(params[:id]) unless defined? @image_version if @image_version.update_attributes(params[:image_version]) flash[:notice] = 'Image version was successfully updated.' end respond_with @image_version end def destroy @image_version = Tim::ImageVersion.find(params[:id]) unless defined? @image_version @image_version.destroy respond_with @image_version end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
tim-0.1.2 | app/controllers/tim/image_versions_controller.rb |
tim-0.1.1 | app/controllers/tim/image_versions_controller.rb |
tim-0.0.1 | app/controllers/tim/image_versions_controller.rb |