Kenny,
It gives me some very peculiar behavior. I submit, in the corm I am
using to create the record (it gets save) then it comes back with the
AS create template...ie.it has my create form, with submit
button.....then, below that a create button and cancel link from AS.
Here is my create method:

    def create
      params[:associate][:state]=params['state']
      @associate = Associate.new(params[:associate])
      set_branch_code
      if @associate.save
        if(session['fromlogin']!= nil && session['fromlogin']
==1)
          flash[:notice] = "Registration successful."
          redirect_to root_url
         end
         session['fromlogin']=0
         respond_to_action(:create)
      else
        #render :action => 'new'
        render :action => 'new', :layout => 'other_layout'
      end
    end
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"ActiveScaffold : Ruby on Rails plugin" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/activescaffold?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to