search for: change_type

Displaying 2 results from an estimated 2 matches for "change_type".

Did you mean: change_time
2009 Nov 30
6
rails 2.2.3 dirty.rb field_changed? method throwing arg error on creating an obj
I have a new model I''ve just built. It''s associated with another model via has_many. I''m trying to create one of these obj''s for the first time and I keep getting an Argument Error as follows: ArgumentError (wrong number of arguments (3 for 0)): C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.2.3/lib/ active_record/dirty.rb:135:in `field_changed?''
2010 Jun 23
0
Rails 3 - AJAX Response
...user } end end # GET /users/new # GET /users/new.xml def new @user = User.new respond_to do |format| format.html # new.html.erb format.xml { render :xml => @user } end end # GET /users/1/edit def edit @user = User.find(params[:id]) if params[:change_type] change_type end end # POST /users # POST /users.xml def create @user = User.new(params[:user]) respond_to do |format| if @user.save format.html { redirect_to(@user, :notice => ''User was successfully created.'') } format.xml {...