def new 
    @user_mst = UserMst.new 
    @group_mst = GroupMst.all 

    respond_to do |format| 
      format.html # new.html.erb 
      format.xml  { render :xml => @user_mst } 
    end 
  end 

  def edit 
    @user_mst = UserMst.find(params[:id]) 
        @group_mst = GroupMst.all 
  end 

 def create 
    @user_mst = UserMst.new(params[:user_mst]) 
        @group_mst = GroupMst.all 

    respond_to do |format| 
      if @user_mst.save 
        format.html { redirect_to(@user_mst, :notice => 'User mst was
successfully created.') } 
        format.xml  { render :xml => @user_mst, :status => :created,
:location => @user_mst } 
      else 
        format.html { render :action => "new" } 
        format.xml  { render :xml => @user_mst.errors, :status =>
:unprocessable_entity } 
      end 
    end 
  end 

Those are the lines I include @group_mst.



--
View this message in context: 
http://ruby.11.x6.nabble.com/help-renders-new-edit-user-mst-form-tp4991623p4991634.html
Sent from the rspec-users mailing list archive at Nabble.com.
_______________________________________________
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users

Reply via email to