Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def create
- @client = Client.find(params[:client_id])
- @client_user = ClientUser.new(params[:client])
- @user = User.new(params[:user])
- #how do I save all that and have any hope of getting any sort of sensible errors back to the new form if it goes tids up?
- respond_to do |format|
- flash[:notice] = "User successfully created"
- format.html{redirect_to client_path(@client)}
- else
- format.html{render :action => 'new'}
- end
- end
- end
- end
Add Comment
Please, Sign In to add comment