Sha256: ad3daae5fb3cb88c0ba4b5e5dcbe500a8f2dcf3c60a3ed988ec4e504905e05c0
Contents?: true
Size: 312 Bytes
Versions: 2
Compression:
Stored size: 312 Bytes
Contents
class UsersController < ApplicationController respond_to :html, :json def new @type = params[:type] || 'html' @ajax = params[:ajax] || false respond_with @user = User.new end def create respond_with @user = User.create(params[:user]) end def index head :ok end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
edifice-forms-0.5.1 | spec/rails3.1/app/controllers/users_controller.rb |
edifice-forms-0.5.0 | spec/rails3.1/app/controllers/users_controller.rb |